Re: checking dns records from named.conf

From: Ted Cabeen (secabeen_at_pobox.com)
Date: 07/21/03

  • Next message: Matthew D. Fuller: "Re: checking dns records from named.conf"
    To: Adam Maloney <adamm@sihope.com>
    Date: Mon, 21 Jul 2003 11:19:26 -0700
    
    

    Adam Maloney <adamm@sihope.com> writes:

    > Something like:
    >
    > for DOMAIN in `cat /etc/named.conf | grep "zone" | awk '{ print $2 }' |
    > sed s/\"//g`; do dig @f.gtld-servers.net $DOMAIN | grep "ns1.ispro.net.tr"
    > 2>&1 > /dev/null || echo "$DOMAIN not pointed here"; done
    >
    > (untested, but basically what I've done in the past whenever I need taht).
    > For each domain in named.conf, query the root-servers for the authorative
    > NS records (ns1.ispro.net.tr should be replaced with your primary
    > nameserver). Then if the grep does not succeed (your nameserver not in
    > the output) then echo the domain so we know about it.
    >
    > May take some tweaking.

    This works, but only for .com and .net addresses. For .org you have
    to query nstld.com, and for any of the other GTLDs or the CCTLDs, you
    have to hit their servers. Does anybody know of a program that does
    this all automatically? Would be a nice little utility to write.

    -- 
    Ted Cabeen           http://www.pobox.com/~secabeen            ted@impulse.net 
    Check Website or Keyserver for PGP/GPG Key BA0349D2         secabeen@pobox.com
    "I have taken all knowledge to be my province." -F. Bacon  secabeen@cabeen.org
    "Human kind cannot bear very much reality."-T.S.Eliot        cabeen@netcom.com
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Matthew D. Fuller: "Re: checking dns records from named.conf"

    Relevant Pages

    • Re: checking dns records from named.conf
      ... but basically what I've done in the past whenever I need taht). ... query the root-servers for the authorative ... Then if the grep does not succeed (your nameserver not in ...
      (freebsd-isp)
    • Re: Trouble Configuring system for NIS+
      ... > I am putting in the correct information for the name server in at the time ... The nameserver must be preconfigured with the name and IP of the new ... machine BEFORE you begin the install. ... entered and if a query fails the installation cannot continue. ...
      (comp.sys.sun.admin)
    • Re: named
      ... I have trace of query in logs. ... The BSD resolver has never worked for me with a server line of 12.0.0.1. ... I always use the local IP address of the nameserver, ... This is a bug that existed for many years (it's even mentioned in the "DNS & BIND" book), but I thought it had been fixed in most flavors of Unix years ago. ...
      (comp.sys.mac.system)
    • Re: microsoft dns server not resolving external Names
      ... > Yeah, thought so too:) ... > Your querys are working for the root-servers, ... So it did return the gTLD server addresses? ... Post the results from an external query using nslookup -d2 www.yahoo.com ...
      (microsoft.public.windows.server.dns)
    • Re: how to know what DNS server is being used
      ... nameserver lines in order, sending the query out to each in turn until ... it gets a response. ... It used to be that the resolver would wait for the ...
      (freebsd-questions)