[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Puzzled by the behaviour of the bind9-host package in Debian Lenny



Hello

I have the following resolv.conf:

search openforce.com
nameserver 10.200.1.11
nameserver 195.34.133.21

The first name server is a "private" nameserver for internal needs, the second one is the DNS of my ISP.

When I use "host" from the Debian 4.0 bind9-host package, i get correct DNS responses, however by Debian Lenny the queries do not get resolved.
the host I am trying to query is only available in the private DNS server

Debian 4.0
host kairo.openforce.com
kairo.openforce.com has address 10.200.1.205

Debian Lenny
host kairo.openforce.com
Host kairo.openforce.com not found: 3(NXDOMAIN)

Verbose output:
Debian 4.0
host -v kairo.openforce.com
Trying "kairo.openforce.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19296
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;kairo.openforce.com.           IN      A

;; ANSWER SECTION:
kairo.openforce.com.    3600    IN      A       10.200.1.205

Received 53 bytes from 10.200.1.11#53 in 1 ms

Debian Lenny
host -v kairo.openforce.com
Trying "kairo.openforce.com"
Received 82 bytes from 195.34.133.21#53 in 6 ms
Trying "kairo.openforce.com.openforce.com"
Host kairo.openforce.com not found: 3(NXDOMAIN)
Received 96 bytes from 10.200.1.11#53 in 1 ms

So it looks to me "host" command stupidly tries to query from the _second_ nameserver entry, in newew bind9-host versions. Or did I miss something ?

/etc/hosts, /etc/host.conf, /etc/nsswitch.conf are identical on both machines

EK

--

openForce Information Technology GesmbH
http://www.openforce.com/
It is a book about a Spanish guy called Manual. You should read it.
        -- Dilbert


Reply to: