I have a vanilla 10.3 installation running inside VMWare Fusion Pro, on to which I installed Unbound. The object is to use this is a caching recursive DNS server. The IP bound to the NIC is 10.10.10.13. I can ping this from other hosts on the LAN without problem, and it also accepts remote SSH sessions fine.
Unbound however is not listening on 10.10.10.13:53, and I have not yet figured out why. As you can see from the sockstat output, it's listening on localhost 53, and I can resolve external host OK if I drill localhost. Any help gratefully accepted:
Unbound however is not listening on 10.10.10.13:53, and I have not yet figured out why. As you can see from the sockstat output, it's listening on localhost 53, and I can resolve external host OK if I drill localhost. Any help gratefully accepted:
Code:
root@unboundrns:/ # cat /etc/rc.conf
hostname="unboundrns.testdomain.org"
ifconfig_em0="10.10.10.13 netmask 255.255.255.0"
defaultrouter="10.10.10.1"
ntpd_enable="YES"
sshd_enable="YES"
unbound_enable="YES"
Code:
root@unboundrns:/ # cat /etc/unbound/unbound.conf
## Simple recursive caching DNS
## unbound.conf -- https://calomel.org
#
server:
interface: 127.0.0.1
interface: 0.0.0.0
# interface: 10.10.10.13
access-control: 10.10.10.0/8 allow_snoop
access-control: 127.0.0.0/8 allow
## allow_snoop: 10.10.10.0/24
logfile: "/var/unbound/unbound.log"
log-queries: yes
verbosity: 3
port: 53
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
root-hints: "/var/unbound/root.hints"
auto-trust-anchor-file: "/var/unbound/root.key"
hide-identity: yes
hide-version: yes
harden-dnssec-stripped: yes
harden-glue: yes
prefetch: yes
msg-cache-slabs: 2
rrset-cache-slabs: 2
infra-cache-slabs: 2
key-cache-slabs: 2
rrset-cache-size: 256m
msg-cache-size: 128m
val-clean-additional: yes
unwanted-reply-threshold: 10000
Code:
root@unboundrns:/ # sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
unbound unbound 745 3 udp6 ::1:53 *:*
unbound unbound 745 4 tcp6 ::1:53 *:*
unbound unbound 745 5 udp4 127.0.0.1:53 *:*
unbound unbound 745 6 tcp4 127.0.0.1:53 *:*
unbound unbound 745 7 dgram -> /var/run/logpriv
unbound unbound 745 8 stream -> ??
unbound unbound 745 9 stream -> ??
root sshd 709 3 tcp4 10.10.10.13:22 10.10.10.16:59859
root login 652 3 dgram -> /var/run/logpriv
smmsp sendmail 599 3 dgram -> /var/run/log
root sendmail 596 3 tcp4 127.0.0.1:25 *:*
root sendmail 596 4 dgram -> /var/run/logpriv
root sshd 593 3 tcp6 *:22 *:*
root sshd 593 4 tcp4 *:22 *:*
root syslogd 452 4 dgram /var/run/log
root syslogd 452 5 dgram /var/run/logpriv
root syslogd 452 6 udp6 *:514 *:*
root syslogd 452 7 udp4 *:514 *:*
root devd 307 4 stream /var/run/devd.pipe
root devd 307 5 seqpac /var/run/devd.seqpacket.pipe
root devd 307 7 dgram -> /var/run/logpriv
Code:
root@unboundrns:/ # cat /etc/resolv.conf
search testdomain.org
nameserver 127.0.0.1
# nameserver 10.10.10.1
# nameserver 4.2.2.2