Nslookup not showng TTL
Adam Tkac
atkac at redhat.com
Thu Oct 15 08:47:39 UTC 2009
On Thu, Oct 15, 2009 at 09:06:56AM +0100, John Horne wrote:
> Hello,
Hi,
> Using BIND 9.5.1 it seems that the nslookup command is not showing the
> TTL value of found records. It makes no difference if I set 'debug' or
> 'd2'. Example:
>
> ==============================================================
> nslookup
> > set debug
> > www.plymouth.ac.uk
> Server: 127.0.0.1
> Address: 127.0.0.1#53
>
> ------------
> QUESTIONS:
> www.plymouth.ac.uk, type = A, class = IN
> ANSWERS:
> -> www.plymouth.ac.uk
> canonical name = extranet.plymouth.ac.uk.
> -> extranet.plymouth.ac.uk
> internet address = 141.163.163.185
> AUTHORITY RECORDS:
> -> plymouth.ac.uk
> nameserver = dns0.plymouth.ac.uk.
> -> plymouth.ac.uk
> nameserver = dns1.plymouth.ac.uk.
> ADDITIONAL RECORDS:
> -> dns0.plymouth.ac.uk
> internet address = 141.163.1.250
> -> dns1.plymouth.ac.uk
> internet address = 141.163.177.1
> ------------
> www.plymouth.ac.uk canonical name = extranet.plymouth.ac.uk.
> Name: extranet.plymouth.ac.uk
> Address: 141.163.163.185
> >
> ==============================================================
>
>
> How can I see the TTL value using nslookup?
I'm not sure how force nslookup to show TTL but the `dig` utility is
far more better tool for getting such information:
----
$ dig www.plymouth.ac.uk
; <<>> DiG 9.7.0a3-RedHat-9.7.0-0.5.a3.fc13 <<>> www.plymouth.ac.uk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17054
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 2
;; QUESTION SECTION:
;www.plymouth.ac.uk. IN A
;; ANSWER SECTION:
www.plymouth.ac.uk. 3143 IN CNAME
extranet.plymouth.ac.uk.
extranet.plymouth.ac.uk. 85943 IN A 141.163.163.185
;; AUTHORITY SECTION:
plymouth.ac.uk. 85943 IN NS dns1.cs.strath.ac.uk.
plymouth.ac.uk. 85943 IN NS dns0.plymouth.ac.uk.
plymouth.ac.uk. 85943 IN NS dns1.plymouth.ac.uk.
plymouth.ac.uk. 85943 IN NS dns2.cs.strath.ac.uk.
;; ADDITIONAL SECTION:
dns1.cs.strath.ac.uk. 42744 IN A 130.159.196.126
dns2.cs.strath.ac.uk. 42743 IN A 130.159.196.125
----
Regards, Adam
--
Adam Tkac, Red Hat, Inc.
More information about the bind-users
mailing list