Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Last active April 7, 2017 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trajakovic/649b9cfe7c5382d60e8d10d9d870265a to your computer and use it in GitHub Desktop.
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
# 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