From owner-freebsd-questions Sun Jan 14 22: 5:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id B219337B400 for ; Sun, 14 Jan 2001 22:05:35 -0800 (PST) Received: from rfx-64-6-211-149.users.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 14 Jan 2001 22:03:47 -0800 Received: (from cjc@localhost) by rfx-64-6-211-149.users.reflexcom.com (8.11.1/8.11.0) id f0F65SJ42266; Sun, 14 Jan 2001 22:05:28 -0800 (PST) (envelope-from cjc) Date: Sun, 14 Jan 2001 22:05:28 -0800 From: "Crist J. Clark" To: Steve Price Cc: questions@FreeBSD.ORG Subject: Re: dig(1) Q Message-ID: <20010114220528.X97980@rfx-64-6-211-149.users.reflexco> Reply-To: cjclark@alum.mit.edu References: <20010114234830.I65118@bonsai.knology.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010114234830.I65118@bonsai.knology.net>; from sprice@hiwaay.net on Sun, Jan 14, 2001 at 11:48:30PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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 > > ; <<>> DiG 8.3 <<>> dogbark.com > ;; res options: init recurs defnam dnsrch > ;; got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62188 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3 ^^ This is an authoritarive response. > ;; QUERY SECTION: > ;; dogbark.com, type = A, class = IN > > ;; ANSWER SECTION: > dogbark.com. 10M IN A 207.234.88.178 > > ;; AUTHORITY SECTION: > dogbark.com. 10M IN NS bichon.dogbark.com. > dogbark.com. 10M IN NS spitz.dogbark.com. > > ;; ADDITIONAL SECTION: > bichon.dogbark.com. 10M IN A 207.234.88.178 > bichon.dogbark.com. 10M IN A 216.183.105.106 > spitz.dogbark.com. 10M IN A 207.234.88.179 > > ;; Total query time: 57 msec > ;; FROM: bonsai.knology.net to SERVER: default -- 127.0.0.1 > ;; WHEN: Sun Jan 14 23:40:24 2001 > ;; MSG SIZE sent: 29 rcvd: 134 > > steve@bonsai(~)$ dig dogbark.com > > ; <<>> DiG 8.3 <<>> dogbark.com > ;; res options: init recurs defnam dnsrch > ;; got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33026 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 This is not. It is cached. > ;; QUERY SECTION: > ;; dogbark.com, type = A, class = IN > > ;; ANSWER SECTION: > dogbark.com. 9m56s IN A 207.234.88.178 > > ;; AUTHORITY SECTION: > dogbark.com. 9m56s IN NS bichon.dogbark.com. > dogbark.com. 9m56s IN NS spitz.dogbark.com. > > ;; ADDITIONAL SECTION: > bichon.dogbark.com. 1d14h50m59s IN A 207.234.88.178 > spitz.dogbark.com. 1d4h7m48s IN A 207.234.88.179 > > ;; Total query time: 1 msec > ;; FROM: bonsai.knology.net to SERVER: default -- 127.0.0.1 > ;; WHEN: Sun Jan 14 23:40:28 2001 > ;; MSG SIZE sent: 29 rcvd: 118 -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message