Maintained by: NLnet Labs

dynamic ip host & auto dns changes

Ernie Luzar
Mon Sep 18 14:57:18 CEST 2017


Hello list.

I have installed the unbound port on Freebsd release 11.1. My host gets
an dynamic ip address assigned from the ISP service I am using. This is
all very common and normal. But as we all know, the ISP can change not
only the assigned ip address on the fly but also the dns servers ip
addresses. When this occurs the /etc/resolv.conf file gets updated
automatically on the fly.

 From reading about unbound I get the concept that unbound is designed
for hosts that have static ip addresses. IE; the dns ip addresses have
to be manually placed in /etc/resolv.conf and will not change without
prior written notice.

For this usage /etc/resolv.conf get populated with
"nameserver 127.0.0.1"
and unbound.conf needs the forward-zone: section with the static dns ip
addresses.

Now my question is, is there any way to configure unbound so when the
dynimic dns ip addresses change unbound will contuine to work
automatically. IE; no human manual editing of the unbound.conf file.

Thanks for your help