-
Notifications
You must be signed in to change notification settings - Fork 485
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
增加固定解析 #25
Comments
直接改 ChinaDNS 所在机器的 hosts 即可。 |
实测好像没有效果... root@zmbox:~# cat /etc/hosts The following lines are desirable for IPv6 capable hosts::1 localhost ip6-localhost ip6-loopback ; <<>> DiG 9.9.5-3-Ubuntu <<>> @127.0.0.1 sync.dd.local ;; OPT PSEUDOSECTION: ;; AUTHORITY SECTION: ;; Query time: 4013 msec |
你用的这个不是 python 版吧。openwrt 用 dnsmasq 设置 chinadns 为上级 dns 即可。然后用 dnsmasq 设置内网解析。 |
多谢.我去多挂一层.... |
好像 dnsmasq 不支持非标准端口的 上游dns 服务器的??? 我google 未果...求大大帮助 |
@kuyagic dnsmasq 配置文件里写 |
@aa65535 好像我dnsmasq.conf 里这么写了 好像还是无效的.我也觉得很神奇....待我再研究下... |
@kuyagic 要用 chinadns 做上游就不要其他的 |
@aa65535 init script 里的iptables 已经去掉 |
@aa65535 root@zmbox:/etc/dnsmasq.d# dig a.com ; <<>> DiG 9.9.5-3-Ubuntu <<>> a.com ;; QUESTION SECTION: ;; ANSWER SECTION: ;; Query time: 0 msec root@zmbox:/etc/dnsmasq.d# dig www.twitter.com ; <<>> DiG 9.9.5-3-Ubuntu <<>> www.twitter.com ;; OPT PSEUDOSECTION: ;; ANSWER SECTION: ;; Query time: 8 msec root@zmbox:/etc/dnsmasq.d# dig +cmd www.twitter.com @127.0.0.1 -p 5353 ; <<>> DiG 9.9.5-3-Ubuntu <<>> +cmd www.twitter.com @127.0.0.1 -p 5353 ;; OPT PSEUDOSECTION: ;; ANSWER SECTION: ;; Query time: 80 msec |
把你的 /etc/dnsmasq.conf 和 /etc/dnsmasq.d/ 下每个文件都贴出来看看。 |
dnsmasq.conf 就一行有效代码 dnsmasq.d 下 有2个文件 lxc 内容如下 Tell any system-wide dnsmasq instance to make sure to bind to interfacesinstead of listening on 0.0.0.0WARNING: changes to this file will get lost if lxc is removed.bind-interfaces upstream 内容如下 |
@clowwindy 谢谢各位大大 |
能否增加一个配置文件 类似hosts的.可以用来解析一些内网ip....
The text was updated successfully, but these errors were encountered: