Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom_netflix.conf #63

Open
Noa886 opened this issue Dec 25, 2022 · 4 comments
Open

custom_netflix.conf #63

Noa886 opened this issue Dec 25, 2022 · 4 comments

Comments

@Noa886
Copy link

Noa886 commented Dec 25, 2022

custom_netflix.conf 当前文件配置单个IP进行DNS解析,是否能够添加多个IP进行分流或者轮询或者随机解析。
如果支持,配置文件需要怎么修改?

@myxuchangbin
Copy link
Owner

对于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

@Noa886
Copy link
Author

Noa886 commented Dec 25, 2022

谢谢

@Noa886
Copy link
Author

Noa886 commented Dec 27, 2022

用的快速安装 dnsmasq是2.86以下版本
测试了 配置hosts 与 custom_netflix.conf 文件不生效。

使用

address=/example.com/1.2.3.4
address=/example.com/5.6.7.8

的格式,只会对第一个匹配的IP进行使用无法轮询或随机选择。

@myxuchangbin
Copy link
Owner

脚本已更新,运行脚本单独安装dnsmasq,会安装目前最新版2.88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants