Search Again:

Re: Testing secondary is confusing me

From: Men & Mice Support
Date: Friday, February 6, 2004
Time: 9:06:40 am

At 12:08 AM -0800 2/6/04, Scott Haneda wrote:
>Hello, trying to make sure a secondary is doing as it is supposed to, I use
>this:
>
>dig @ns1.pbi.net micromat.com SOA +norecurse
>Pertinant line I care about is:
>;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
>
>I think I am just looking for the aa part, that tells me that the secondary
>is slaving me.

Yes, pretty much. The "aa" flag stands for "authoritative answer",
meaning that the server has a zone of the correct name. (It doesn't
necessarily mean that they're slaving the zone from your server - in
theory, it could have a master zone of the same name, or it could be
slaving from someone else's master zone of the same name.)

>Now, in a past thread:
><http://archive.digitalpoint.com/FMPro?-db=listarch.fp5&-lay=web&-RecID=1264
>3149&-Format=/QDNS/archdetail.html&-Find>
>I was told that:
>dig soa +norecurse @dns2.intermag.com newgeo.com | grep flags:.*\ aa\
>*notice the space at the end, looks for "flags:" and " aa " on the same line
>in the result.
>
>So if there is a result, I am good, if not, I am bad.
>
>Problem is, I think this slave is doing its job now, however, the grep is
>reporting falsely and giving me no response. Any idea what I am doing wrong
>here, or is it just that dig returns different, or perhaps pbi.net is
>returning different data and I need to alter my grep?

Take the "\ " off the end. The flags section ends with "aa;", not "aa
" followed by some other flag.

>I really don't know exactly what I am looking for here, one zone I know for
>sure is being slaved gives me back:
>;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
>
>The other, the one in question gives me back:
>;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

"ra" stands for "recursion available". ns1.pbi.net doesn't offer
recursion to the general public anymore (though it used to).

>So to grep and look for <space>aa<space> seems correct, in that the first
>one would return something, so I know it is ok, the second fails the grep
>and tells me I need to talk to ns1.pbi.net.

No, it's fine.
____________________________________________________________________
Chris Buxton Men & Mice
Customer Support Specialist Making DNS Easy



Messages In This Thread:



Return to Digital Point Solutions' Home Page