Semantics of the "host" utility
- From: gwillem@xxxxxxxxx
- Date: 10 Apr 2006 03:44:10 -0700
Hello there,
I am trying to find out the nameservers for a 2nd level domainname at
the ccTLD nameservers. This /used/ to work:
host -t ns <domain> ns.domain-registry.nl
However, since a recent 'host' version (unfortunately I'm not sure
which), the utility gives me this:
# host -t NS microsoft.nl ns.domain-registry.nl
microsoft.nl NS record currently not present at ns.domain-registry.nl
I can get the nameservers bij using the debug option (-d) and grepping
for "IN NS" but this is an ugly solution:
# host -d -t NS microsoft.nl ns.domain-registry.nl
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16152
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; microsoft.nl, type = NS, class = IN
;; Querying server (# 1) udp address = 193.176.144.2
;; got answer, 79 bytes:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16152
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 0
;; microsoft.nl, type = NS, class = IN
microsoft.nl. 1D IN NS dns1.calanza.net.
microsoft.nl. 1D IN NS dns2.calanza.net.
;; Query failed, 0 answers, status: no error
microsoft.nl NS record currently not present at ns.domain-registry.nl
What is the preferred way to find out the auth nameservers for a 2nd
level domain through DNS and using 'host'?
Thanks!
Willem
.
- Follow-Ups:
- Re: Semantics of the "host" utility
- From: David Bailey
- Re: Semantics of the "host" utility
- Prev by Date: Re: Shell programming
- Next by Date: VPN and VNC for Embedded Software Porting and Development in Remote Hardware
- Previous by thread: GTK problem , where is it
- Next by thread: Re: Semantics of the "host" utility
- Index(es):
Relevant Pages
|