2

On Ubuntu I use the resolvconf utility to update & maintain /etc/resolv.conf

On CentOS 7, the resolvconf utility doesn't appear to exist.

What is the correct way to maintain /etc/resolv.conf file on CentOS 7 ?

KR, Nath

NathStone
  • 31
  • 4
  • http://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf might cointain some tips. – Hannu Nov 13 '16 at 14:36
  • The correct way depends of your environment. I have an environment where all servers receive DNS settings through DHCP. – Zina Nov 13 '16 at 14:38
  • You may try to use openresolv (http://roy.marples.name/projects/openresolv/index) compiling it yourself. – NuTTyX Nov 13 '16 at 14:43

1 Answers1

1

Thanks for the responses, they all helped me find the solution. Thanks Hannu - using nmcli con edit , then set ipv4.dns allowed me use NetworkManager to update resolv.conf. Zina - I was receiving a default nameserver from my DHCP client and NetworkManager automatically adds it to the top. Cheers guys!

NathStone
  • 31
  • 4