MavEtJu's Distorted View of the World

/etc/resolv.conf in jails

Posted on 2006-12-11 09:04:18, modified on 2006-12-11 11:42:03
Tags: FreeBSD, DNS

I have been plagued by this error in some of my jails for a long time:

$ dig
;; reply from unexpected source:, expected

telnet itself works fine, it's just that dig and friends give this strange error. What is also strange is that the tcpdump output doesn't reflect the settings in /etc/resolv.conf:

$ cat /etc/resolv.conf

And the tcpdump output:

# tcpdump -ni lo0 port 53
11:28:45.204241 IP >  15750 A? (29)
11:28:45.218305 IP >  15750- 0/4/4 (203)

Of course this was a configuration issue. In /etc/resolv.conf, the right statement is nameserver, not server. But the resolver in the jail looked through the /etc/resolv.conf of the host which contains

But the final question is: Where does it get from? It is the IP address of the jail, to which silently gets translated to. But the resolver still expects it to come from the number, and is for that reason throwing the warning.

| Share on Facebook | Share on Twitter
Comments: No comments yet
Leave a comment
Back to the main page