host command behavior changed?

Ian D. ian at cablelabs.com
Tue Feb 15 23:14:04 UTC 2005


I recently upgraded to bind 9.3.0.  The `host' command apparently works differently.  If I look up an A record, it also tries to look up AAAA and MX records, which I don't want it to do.  
% host -t A MyTest localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

MyTest.mydomain.com has address 1.2.3.4
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

I didn't know why it showed 3 stanzas until I added -d.  I see that it makes 3 queries:

;; QUESTION SECTION:
;MyTest.mydomain.com.          IN      A

;; QUESTION SECTION:
;MyTest.mydomain.com.          IN      AAAA

;; QUESTION SECTION:
;MyTest.mydomain.com.          IN      MX

Since I use `host' in scripts, I don't want this behavior.  How do I make it act like it did in 9.2.0?  I don't recall seeing anything in the release notes about this.

TIA,
Ian




More information about the bind-users mailing list