Problem:
I’m provisioning my systems on a private network at 192.168.100.0/21.
For reasons that I do not understand, Foreman is adding a zone for 192.168.x.y to /etc/bind/zones.conf
. Unfortunately, the bind9 DNS server considers this a duplicate configuration since that network is already stored under /etc/bind/zones.rfc1918
, and
fails, as shown in the systemctl
output below:
systemctl status bind9 --no-pager --full
● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-03-12 01:45:37 UTC; 15h ago
Docs: man:named(8)
Process: 21467 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS)
Process: 21470 ExecStart=/usr/sbin/named -f $OPTIONS (code=exited, status=1/FAILURE)
Main PID: 21470 (code=exited, status=1/FAILURE)
Mar 12 01:45:37 foreman named[21470]: adjusted limit on open files from 4096 to 1048576
Mar 12 01:45:37 foreman named[21470]: found 4 CPUs, using 4 worker threads
Mar 12 01:45:37 foreman named[21470]: using 3 UDP listeners per interface
Mar 12 01:45:37 foreman named[21470]: using up to 4096 sockets
Mar 12 01:45:37 foreman named[21470]: loading configuration from '/etc/bind/named.conf'
Mar 12 01:45:37 foreman named[21470]: /etc/bind/zones.conf:1: zone '168.192.in-addr.arpa': already exists previous definition: /etc/bind/zones.rfc1918:20
Mar 12 01:45:37 foreman named[21470]: loading configuration: failure
Mar 12 01:45:37 foreman named[21470]: exiting (due to fatal error)
Mar 12 01:45:37 foreman systemd[1]: bind9.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 01:45:37 foreman systemd[1]: bind9.service: Failed with result 'exit-code'.
Expected outcome:
I didn’t expect the Foreman Installer to create a redundant zone under /etc/bind/zones.conf. How can I avoid this?
Foreman and Proxy versions:
-
OS version: Ubuntu 18.04.2
-
Foreman version: 1.21.0
-
Proxy versions:
DHCP
Version1.21.0
Subnets CRT Provisioning (192.168.100.0/21)DNS
Version1.21.0
Domains None foundTFTP
Version1.21.0
TFTP server 192.168.100.10