From owner-freebsd-questions Sun Jan 14 22:25:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 1E2BF37B400 for ; Sun, 14 Jan 2001 22:25:27 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id f0F6POo19287; Mon, 15 Jan 2001 00:25:24 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.1/8.11.1) id f0F6PNG69382; Mon, 15 Jan 2001 00:25:23 -0600 (CST) (envelope-from steve) Date: Mon, 15 Jan 2001 00:25:22 -0600 From: Steve Price To: cjclark@alum.mit.edu Cc: questions@FreeBSD.ORG Subject: Re: dig(1) Q Message-ID: <20010115002522.J65118@bonsai.knology.net> References: <20010114234830.I65118@bonsai.knology.net> <20010114220528.X97980@rfx-64-6-211-149.users.reflexco> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010114220528.X97980@rfx-64-6-211-149.users.reflexco>; from cjclark@reflexnet.net on Sun, Jan 14, 2001 at 10:05:28PM -0800 X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jan 14, 2001 at 10:05:28PM -0800, Crist J. Clark wrote: # On Sun, Jan 14, 2001 at 11:48:30PM -0600, Steve Price wrote: # > I'm utterly confused at the output I've been getting from dig(1). # > Can anyone out there explain why the first time I run dig I get # > one answer and yet seconds later I get another? # # Ask the servers you are querying. dig(1) is just telling you whatever # they send back. I have and they both (the primary and secondary DNS servers for this domain) give me the first answer which is the correct one. I have accounts on all of the boxes in question and when I dig(1) this domain on those boxes I get the answer I expect no matter how many times I try it. # What I believe we have here is the differences between what you see # when you are getting a reply from the remote server and when you are # getting from the cached reply from the local server. Note, # # > steve@bonsai(~)$ dig dogbark.com [snip] # > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3 # ^^ # This is an authoritarive response. Yes and this is the one I'd expect to get every time. # > steve@bonsai(~)$ dig dogbark.com [snip] # > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 # # This is not. It is cached. Why wouldn't my local DNS server cache the correct result instead of a clearly bogus one after having received the correct one? -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message