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 ? 回答1: 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 回答2: While the accepted answer may have solved the author's problem, it is misleading as it suggests that the leading dot would match subdomains only, which is not