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: host -6 failure
      ... Subject: host -6 failure ... the second nameserver in my ... My intent was to force a query to hit the ... As I said, I'm new to IPv6, but this ...
      (freebsd-questions)
    • Re: host -6 failure
      ... Subject: host -6 failure ... the second nameserver in my ... My intent was to force a query to hit the ... As I said, I'm new to IPv6, but this ...
      (freebsd-questions)
    • Re: DNS name resolver question
      ... nameserver x.x.x.x ... In normal operation are lookups performed to each one in round robin ... I have read that some people disable nscd as it caused performance ... to not answer the query from its cache, ...
      (comp.unix.solaris)