Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Last active Apr 7, 2017
Embed
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 127.0.0.1 with your dns to prepend with
prepend domain-name-servers 127.0.0.1;
@trajakovic
Copy link
Author

Just dont forget to restart network with systemctl restart network.

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

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