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

3

1 Answer 1

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!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .