Configure local wildcard DNS server
- Install Dnsmasq:
sudo apt-get install dnsmasq
- Since Ubuntu's NetworkManager uses dnsmasq, and since that messes things up a little for us, open up
/etc/NetworkManager/NetworkManager.confand comment out (
#) the line that reads
dns=dnsmasq. Restart NetworkManager afterwards:
sudo restart network-manager.
- Make sure Dnsmasq listens to local DNS queries by editing
/etc/dnsmasq.conf, and adding the line
- Create a new file in
/etc/dnsmasq.d/dev), and add the line
address=/dev/127.0.0.1to have dnsmasq resolve requests for *.dev domains. Restart Dnsmasq:
sudo /etc/init.d/dnsmasq restart.