带dnsmasq的通配符子域 [英] Wildcard subdomains with dnsmasq
本文介绍了带dnsmasq的通配符子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个已经映射到 domain.tld
的设备。我现在想为所有子域 *。domain.tld
创建一个通配符,以便映射到 domain.tld
也是。
如何使用 dnsmasq
?
解决方案
在 dnsmasq.conf
文件中,添加行
address = / .domain.tld / 192.168.0.1
但是使用您实际想要的IP作为结束位
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
?
解决方案
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
这篇关于带dnsmasq的通配符子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文