Search Again:

Re: Searching out domains that I forgot to tell to slave.

From: Men & Mice Support
Date: Tuesday, December 16, 2003
Time: 12:50:29 pm

Actually, since the goal is to find out whether the slave contains an
authoritative version of the zone, not to get the slave to look up
data if necessary, try this:

dig @slave zone.name soa +norecurse

The order of words after 'dig' itself is not important. So for example:

dig soa +norecurse @dns2.intermag.com newgeo.com

And since you don't really care about the records returned, just the
'aa' flag, you can filter it like this (with the result shown after):

$ dig soa +norecurse @dns2.intermag.com newgeo.com | grep flags:.*\ aa\
;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

Note the space after the final "\" at the end of the command. This
looks for "flags:" and " aa " on the same line in the result.

If there's a result line (it will look like the above), then the
slave is properly configured. If there's no result, then there's a
problem either in the typing of the command or in the slave's
configuration.

Of course, with just a little more effort, you could create a
full-blown shell script that would iterate through zone names stored
in a text file, check them all, and display the names of ones that
have problems.
____________________________________________________________________
Chris Buxton Men & Mice
Customer Support Specialist Making DNS Easy

At 9:20 AM -0700 12/16/03, Dan Farmer wrote:
>dig @slave domain.com
>
>ex:
>dig @192.168.0.2 www.newgeo.com
>dig @192.168.0.2 newgeo.com MX
>
>hope this helps
>
>On Dec 16, 2003, at 1:19 AM, Scott Haneda wrote:
>
>>Friend of mine does my secondary DNS, sometimes I forget to tell him to add
>>in a domain, so now I need to take some domains and ask of my secondary if
>>it is being slaved.
>>
>>Currently I use
>>nslookup example.com dns2.example.com
>>
>>But that complains :
>>Note: nslookup is deprecated and may be removed from future releases.
>>Consider using the `dig' or `host' programs instead. Run nslookup with
>>the `-sil[ent]' option to prevent this message from appearing.
>>
>>However, I can not for the life of me get dig to tell me the same, or at
>>least I don't know what I am looking for, can someone shed some light on
>>this?
>>
>>thanks
>>--
>>-------------------------------------------------------------
>>Scott Haneda Tel: 415.898.2602
>>http://www.newgeo.com Fax: 313.557.5052
>>scott@newgeo.com Novato, CA U.S.A.




Messages In This Thread:



Return to Digital Point Solutions' Home Page