Search code examples
dnssubdomainwildcarddnsmasq

Wildcard subdomains with dnsmasq


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?


Solution

  • 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