EFFECT
drill(1) resolves r0.z201 correctly to 192.168.201.1.
host(1) resolves r0.z201 correctly to 192.168.201.1.
ping(8) works when given argument 192.168.201.1.
ping(8) doesn't work when given argument r0.z201. (fails to resolve)
OBSERVATIONS
When using truss(1) I can see that
ping(8) does:
open("/lib/libcasper.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) = 3 (0x3)
open("/lib/casper/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) = 3 (0x3)
while other commands that successfully resolve do not load in casper.
When I use a different resolver than the locally set up unbound ping(8) does not fail to resolve.
SETUP
I have some jails set up with nameserver 127.0.0.1 in /etc/resolv.conf.
Jails use a separate loopback interface that is NAT-ed to the outside via pf(4).
Jails are on subnet 10.201.0.0/24.
Host is running unbound(8) with interface set to 0.0.0.0 and ::0 and is accepting both TCP and UDP.
I have static local records in the configuration e.g.:
local-zone: "z201." static
local-data: "r0.z201. IN A 192.168.201.1"
local-data-ptr: "192.168.201.1 r0.z201."
and I forward unknown requests to 1.0.0.1, 1.1.1.1, 8.8.8.8, 8.8.4.4.
QUESTION
Am I missing something?
Where should I look?
How can I make it work?
drill(1) resolves r0.z201 correctly to 192.168.201.1.
host(1) resolves r0.z201 correctly to 192.168.201.1.
ping(8) works when given argument 192.168.201.1.
ping(8) doesn't work when given argument r0.z201. (fails to resolve)
OBSERVATIONS
When using truss(1) I can see that
ping(8) does:
- socket(PF_INET,SOCK_DGRAM|SOCK_CLOEXEC,0) = 3
- connect(3,{ AF_INET 127.0.0.1:53 },16) = 0
- sendto(3,"\M-+\M-!\^A\0\0\^A\0\0\0\0\0\0"...,25,0,NULL,0) = 25
- socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP) = 3
- sendto(3,"\M^^\^E\^A\0\0\^A\0\0\0\0\0\0\^B"...,25,0,{ AF_INET 127.0.0.1:53 },16) = 25
open("/lib/libcasper.so.1",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) = 3 (0x3)
open("/lib/casper/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) = 3 (0x3)
while other commands that successfully resolve do not load in casper.
When I use a different resolver than the locally set up unbound ping(8) does not fail to resolve.
SETUP
I have some jails set up with nameserver 127.0.0.1 in /etc/resolv.conf.
Jails use a separate loopback interface that is NAT-ed to the outside via pf(4).
Jails are on subnet 10.201.0.0/24.
Host is running unbound(8) with interface set to 0.0.0.0 and ::0 and is accepting both TCP and UDP.
I have static local records in the configuration e.g.:
local-zone: "z201." static
local-data: "r0.z201. IN A 192.168.201.1"
local-data-ptr: "192.168.201.1 r0.z201."
and I forward unknown requests to 1.0.0.1, 1.1.1.1, 8.8.8.8, 8.8.4.4.
QUESTION
Am I missing something?
Where should I look?
How can I make it work?