Bhaktaraz

Web Enthusiastic, Nature Lover

Tag: wildcard local domains

Installing Dnsmasq for wildcard local domains on Debian

Install sudo apt-get install dnsmasq Configure sudo vim /etc/dnsmasq.conf Add this: address=/example.com/127.0.0.1 listen-address=127.0.0.1 This maps *.example.com to 127.0.0.1 – replace with the domain you want to use. It also makes dnsmasq only respond to local requests for security – this is optional. Restart to load the new configuration: sudo /etc/init.d/dnsmasq restart Test it: nslookup abc.example.com 127.0.0.1 It should say something like: