Created
July 4, 2018 21:41
-
-
Save aymanalzarrad/65b1d1df8ffa3dc6172c4a57e5a22a5c to your computer and use it in GitHub Desktop.
Pointing .test domains using dnsmasq on Ubuntu 18.04
This file contains 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
sudo echo "address=/test/xxx.xxx.xxx.xxx" >> /etc/NetworkManager/dnsmasq.d/domains.conf | |
sudo nano /etc/NetworkManager/NetworkManager.conf | |
# [main] | |
# plugins=ifupdown,keyfile | |
# dns=dnsmasq | |
# ... | |
sudo rm /etc/resolv.conf | |
sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf | |
sudo systemctl restart NetworkManager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment