Problem:
Foreman is not creating forward dns records in /var/named/dynamic/db.lab.domain.org
Nameresolving of provisioned vms is therefore not working.
Reverse records however are created.
Expected outcome:
Proper entries in /var/named/dynamic/db.lab.domain.org so that ping provisioned hosts work.
Foreman and Proxy versions:
Foreman & proxy 3.0.0
Katello 4.2.0.1
Foreman and Proxy plugin versions:
rubygem-foreman_xen-1.0.1
Distribution and version:
Rocky Linux 8.4
Other relevant data:
named is running, and resolves ptr addresses
Not sure its correct,but /etc/resolv.conf points to another dns server, should it be using its own address? I tried, but I don’t think it helps.
I searched logs for pointers to what might be going on, I can’t find any. named is running and doesn’t log anything, foreman logs don’t show any leads (for me).
I installed as follows:
foreman-installer --scenario katello \
--foreman-initial-organization "LAB" \
--foreman-initial-location "LOC" \
--foreman-initial-admin-username admin \
--foreman-initial-admin-password password \
--foreman-proxy-dns true \
--foreman-proxy-dns-managed true \
--foreman-proxy-dns-interface eth0 \
--foreman-proxy-dns-server 127.0.0.1 \
--foreman-proxy-dns-zone lab.domain.net \
--foreman-proxy-dns-reverse 0.0.10.in-addr.arpa \
--foreman-proxy-dhcp true \
--foreman-proxy-dhcp-managed true \
--foreman-proxy-dhcp-server 127.0.0.1 \
--foreman-proxy-dhcp-interface eth0 \
--foreman-proxy-dhcp-range "10.0.0.100 10.0.0.199" \
--foreman-proxy-dhcp-gateway 10.0.0.1 \
--foreman-proxy-dhcp-nameservers 10.0.0.11 \
--foreman-proxy-tftp true \
--foreman-proxy-tftp-managed true \
--foreman-proxy-tftp-servername 10.0.0.11
I reconfigured later with:
foreman-installer \
--foreman-proxy-dns true \
--foreman-proxy-dns-managed true \
--foreman-proxy-dns-interface eth0 \
--foreman-proxy-dns-server 127.0.0.1 \
--foreman-proxy-dns-zone lab.domain.net \
--foreman-proxy-dns-reverse 0.0.10.in-addr.arpa \
--foreman-proxy-dhcp true \
--foreman-proxy-dhcp-managed true \
--foreman-proxy-dhcp-server 127.0.0.1 \
--foreman-proxy-dhcp-interface eth0 \
--foreman-proxy-dhcp-range "10.0.0.100 10.0.0.199" \
--foreman-proxy-dhcp-gateway 10.0.0.1 \
--foreman-proxy-dhcp-nameservers 10.0.0.11 \
--foreman-proxy-tftp true \
--foreman-proxy-tftp-managed true \
--foreman-proxy-tftp-servername 10.0.0.11
I played around wth adding --foreman-proxy-dns-forwarder
, tried rebooting and restarting foreman services. So far no sigar.
Any ideas please?