[dns-operations] is there a diagnostic tool to obtain delegated ns?

Jonathan Stewart jonathan.stewart at gmail.com
Wed Sep 17 23:00:57 UTC 2014


On Thu, Sep 11, 2014 at 9:13 PM, Mark Andrews <marka at isc.org> wrote:

>
> The following will work for any zone w/o a embedded period in a label.
>
> zone="$1" parent="$1" ns=
> while test -z "$ns" -a -n "$parent"
> do
>         parent=`expr "X$zone" : '^[^.]*.\(.*\)'`
>         ns=`dig +short ns -q "$parent"`
> done
> (
>         for s in $ns
>         do
>                 dig +noall -q "$zone" soa "@$s" +authority
>         done
> ) | awk '{print $5}' | sort -ui
>
Mark,

Thanks for helping out a guy like me learn how to be more useful with
bash.  I am using this plus my own changes to do testing of a hosting
environment here today.

Thanks for sharing this code.

Cheers,
Jonathan


>
> > --
> > Mark E. Jeftovic <markjr at easydns.com>
> > Founder & CEO, easyDNS Technologies Inc.
> > +1-(416)-535-8672 ext 225
> > Read my blog: http://markable.com
> >
> > _______________________________________________
> > dns-operations mailing list
> > dns-operations at lists.dns-oarc.net
> > https://lists.dns-oarc.net/mailman/listinfo/dns-operations
> > dns-jobs mailing list
> > https://lists.dns-oarc.net/mailman/listinfo/dns-jobs
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org
> _______________________________________________
> dns-operations mailing list
> dns-operations at lists.dns-oarc.net
> https://lists.dns-oarc.net/mailman/listinfo/dns-operations
> dns-jobs mailing list
> https://lists.dns-oarc.net/mailman/listinfo/dns-jobs
>



-- 
     Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dns-oarc.net/pipermail/dns-operations/attachments/20140917/1e0b72c0/attachment.html>


More information about the dns-operations mailing list