Last active
April 7, 2017 10:08
-
-
Save trajakovic/649b9cfe7c5382d60e8d10d9d870265a to your computer and use it in GitHub Desktop.
Configuration how to /etc/resolv.conf regenerate with local DNS nameserver prepend; works on Fedora(24+) and probably on CentOS7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)