why dig +short for NS doesn't get the result
Torinthiel
torinthiel at data.pl
Tue Mar 1 05:58:20 UTC 2011
On 03/01/11 04:55, terry wrote:
> server1:/var/cache/bind# dig ox.test.nsbeta.info ns @localhost +short
>
> # got nothing here
>
>
> server1:/var/cache/bind# dig ox.test.nsbeta.info ns @localhost
>
> ; <<>> DiG 9.6-ESV-R3 <<>> ox.test.nsbeta.info ns @localhost
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53460
> ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> ;; WARNING: recursion requested but not available
>
> ;; QUESTION SECTION:
> ;ox.test.nsbeta.info. IN NS
>
> ;; AUTHORITY SECTION:
> ox.test.nsbeta.info. 20222 IN NS dwdns1.nsbeta.info.
Look where the answer is
>
> ;; Query time: 0 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Tue Mar 1 11:51:21 2011
> ;; MSG SIZE rcvd: 58
>
>
> I have setup the NS for ox.test.nsbeta.info zone, why dig +short gets
> nothing but dig does get the result?
+short instructs dig to only write extract of ANSWER section. your reply
is in authorative section.
Torinthiel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20110301/c0eb9be3/attachment.bin>
More information about the bind-users
mailing list