Date: Sun, 14 Jan 2001 22:05:28 -0800 From: "Crist J. Clark" <cjclark@reflexnet.net> To: Steve Price <sprice@hiwaay.net> Cc: questions@FreeBSD.ORG Subject: Re: dig(1) Q Message-ID: <20010114220528.X97980@rfx-64-6-211-149.users.reflexco> In-Reply-To: <20010114234830.I65118@bonsai.knology.net>; from sprice@hiwaay.net on Sun, Jan 14, 2001 at 11:48:30PM -0600 References: <20010114234830.I65118@bonsai.knology.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010114220528.X97980>