Re: Should a nameserver know about itself?

bert hubert <ahu@ds9a.nl> Thu, 10 May 2001 09:45 UTC

Received: from nic.cafax.se ([192.71.228.17]) by ietf.org (8.9.1a/8.9.1a) with SMTP id FAA21751 for <dnsop-archive@odin.ietf.org>; Thu, 10 May 2001 05:45:24 -0400 (EDT)
Received: by nic.cafax.se (8.12.0.Beta5/8.12.0.Beta5) id f4A8UPEl006401 for dnsop-outgoing; Thu, 10 May 2001 10:30:25 +0200 (MEST)
Received: from home.ds9a.nl (20dyn25.com21.casema.net [213.17.90.25]) by nic.cafax.se (8.12.0.Beta7/8.12.0.Beta5) with SMTP id f4A8UOLt006396 for <dnsop@cafax.se>; Thu, 10 May 2001 10:30:24 +0200 (MEST)
Received: (qmail 22806 invoked by uid 500); 10 May 2001 08:30:04 -0000
Date: Thu, 10 May 2001 10:30:03 +0200
From: bert hubert <ahu@ds9a.nl>
To: dnsop@cafax.se
Subject: Re: Should a nameserver know about itself?
Message-ID: <20010510103003.A22788@home.ds9a.nl>
Mail-Followup-To: dnsop@cafax.se
References: <20010509150054.C84103@domainregistry.ie> <Pine.BSF.4.21.0105100927150.43413-100000@julubu.staff.apnic.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Mailer: Mutt 1.0pre4i
In-Reply-To: <Pine.BSF.4.21.0105100927150.43413-100000@julubu.staff.apnic.net>; from bruce.campbell@apnic.net on Thu, May 10, 2001 at 09:50:26AM +1000
Sender: owner-dnsop@cafax.se
Precedence: bulk

On Thu, May 10, 2001 at 09:50:26AM +1000, Bruce Campbell wrote:

> Right.  Now that we've gotten that out of the way, can anyone suggest a
> *reliable* test for verifying that a nameserver is responding ( which is
> seperate from verifying that a nameserver is authoritatively serving a
> given zone )

You could send a query for the SOA of the domain, and see if it answers with
the AA flag set:

$ dig ds9a.nl soa @outpost.ds9a.nl

or to check automatically :

$ dig ds9a.nl soa @outpost.ds9a.nl | grep "^\;\; flags" | grep -q " aa "

Another check would be to ask for something in that domain that doesn't
exist, and see if you get an authoritative NXDOMAIN back.

Regards,

bert hubert

-- 
http://www.PowerDNS.com      Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet