Skip to content

Instantly share code, notes, and snippets.

Last active Apr 7, 2017
What would you like to do?
Configuration how to /etc/resolv.conf regenerate with local DNS nameserver prepend; works on Fedora(24+) and probably on CentOS7
# update/crete file on location /etc/dhcp/dhclient.conf
# replace with your dns to prepend with
prepend domain-name-servers;
Copy link

Just dont forget to restart network with systemctl restart network.

Verify with cat /etc/resolv.conf, first nameserver should be your IP (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment