Wildcard subdomains with dnsmasq

后端 未结 2 772
谎友^
谎友^ 2021-01-30 06:37

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

2条回答
  •  -上瘾入骨i
    2021-01-30 07:13

    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

提交回复
热议问题