To update the DNS servers used in configuration on cluster, repeat the following steps on each node.
Note: This procedure can be performed online. Do not change the nameserver defined in /etc/resolv.conf (127.0.0.1)
- Remove immutable attribute for /etc/dnsmasq.conf file
# chattr -i /etc/dnsmasq.conf
- Edit /etc/dnsmasq.conf file and change/add additional DNS servers adding new lines server=
... server=IP_DNS_server_1 server=IP_DNS_server_2 ...
- Restart the dnsmasq service
# systemctl restart dnsmasq
- Check if dnsmasq service is running after the change:
# systemctl status dnsmasq
-
Check if new nameserver(s) are working performing several name lookups
-
Add the immutable attribute for /etc/dnsmasq.conf
# chattr +i /etc/dnsmasq.conf