Open Noa886 opened 1 year ago
对于dnsmasq2.86以上版本,可以直接添加解析地址
address=/example.com/1.2.3.4
address=/example.com/5.6.7.8
对于dnsmasq2.86以下版本,添加以下配置,从文件读取本地 DNS 域名和 IP 的对应关系
addn-hosts=/etc/hosts.example.com
该文件格式为<IP> <Domain name>
,类似/etc/hosts
1.2.3.4 example.com
5.6.7.8 example.com
修改完配置文件记得重启dnsmasq
谢谢
用的快速安装 dnsmasq是2.86以下版本 测试了 配置hosts 与 custom_netflix.conf 文件不生效。
使用
address=/example.com/1.2.3.4
address=/example.com/5.6.7.8
的格式,只会对第一个匹配的IP进行使用无法轮询或随机选择。
脚本已更新,运行脚本单独安装dnsmasq,会安装目前最新版2.88
custom_netflix.conf 当前文件配置单个IP进行DNS解析,是否能够添加多个IP进行分流或者轮询或者随机解析。 如果支持,配置文件需要怎么修改?