host-record=example.com,1.2.3.4
dnsmasq man page说:
总结–host-record=<name>[,<name>….][<IPv4-address>],[<IPv6-address>]
Add A,AAAA and PTR records to the DNS. This adds one or more names to the
DNS with associated IPv4 (A) and IPv6 (AAAA) records. A name may
appear in more than one host-record and therefore be assigned more
than one address. Only the first address creates a PTR record linking
the address to the name. This is the same rule as is used reading
hosts-files. host-record options are consIDered to be read before
host-files,so a name appearing there inhibits PTR-record creation if
it appears in hosts-file also. Unlike hosts-files,names are not
expanded,even when expand-hosts is in effect. Short and long names
may appear in the same host-record,eg.
–host-record=laptop,laptop.thekelleys.org,192.168.0.1,1234::100
以上是内存溢出为你收集整理的domain-name-system – 不自动包含DNSMasq地址中的所有子域全部内容,希望文章能够帮你解决domain-name-system – 不自动包含DNSMasq地址中的所有子域所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)