Wildcard subdomains with dnsmasq

danb picture danb · Mar 10, 2014 · Viewed 61.5k times · Source

I have a device that is already mapped to domain.tld. I now want to create a wildcard for all subdomains *.domain.tld so that they are mapped to the ip of domain.tld, too. How do I do this with dnsmasq?

Answer

EkriirkE picture EkriirkE · Mar 21, 2014

In the dnsmasq.conf file, add the line

address=/.domain.tld/192.168.0.1

But use the IP you actually want as that end bit