关于 dnsmasq 问题

2015-11-02 16:36:49 +08:00
 lxj12328
dnsmasq 服务已经启动了,本地解析正常,但是设置在笔记本上不能正常的解析, DNS request timed out. 是为什么,哪里没有配置对吗?
参考这个文章部署的:
https://plus.google.com/+jianwudan/posts/QQ8qo8Dgi2M
4995 次点击
所在节点    DNS
18 条回复
churchmice
2015-11-02 16:40:28 +08:00
首先你得确定没有防火墙挡着
telnet ip_addr port
看看能不能连上
lxj12328
2015-11-02 16:42:22 +08:00
@churchmice 我已经开放了端口,用 telnet 可以连接。
tony1016
2015-11-02 16:46:07 +08:00
建立在 53 端口,那不自动被污染了
jasontse
2015-11-02 16:47:02 +08:00
@churchmice
@lxj12328
DNS 是 UDP 53 ,为什么你用 Telnet 。
lxj12328
2015-11-02 16:49:51 +08:00
@jasontse 还能怎么测试呢?
@tony1016 换端口的话,怎么更换,电脑不能填端口呀。
jasontse
2015-11-02 16:52:24 +08:00
@lxj12328 只能 nslookup 别无他法。
lxj12328
2015-11-02 16:53:09 +08:00
@jasontse 那请求超时可能是什么原因导致的?
jasontse
2015-11-02 17:04:59 +08:00
@lxj12328
网络不通
防火墙挡了
没有程序监听端口
lxj12328
2015-11-02 17:29:01 +08:00
@jasontse
可以 ping 通,监听也是正常。
lxj12328
2015-11-02 17:32:57 +08:00
@jasontse
listen-address=
这部分需要 127.0.0.1 以外还需要配置其他 IP 吗?
我的是部署在 VPS 上,对应的是公网 IP 。
jasontse
2015-11-02 17:43:40 +08:00
@lxj12328 你都监听本地了外网怎么访问
listen-address=0.0.0.0
lxj12328
2015-11-02 17:52:30 +08:00
@jasontse 改成了 listen-address=0.0.0.0 还是超时。
lxj12328
2015-11-02 17:54:23 +08:00
@jasontse 能给个联系方式吗?
Showfom
2015-11-02 17:57:18 +08:00
给你我的教程

https://ttt.tt/153/
kmahyyg
2015-11-02 17:58:32 +08:00
isp 为了防止 ddos ,默认禁止 53 。搬瓦工就不行
lxj12328
2015-11-02 18:24:57 +08:00
@kmahyyg 那怎么更换端口呢?
kmahyyg
2015-11-02 23:06:13 +08:00
@lxj12328 ( Client ) linux 上或许容易些,网上应该有教程。 win 上不可更改端口,可以考虑 tcp-dns-proxy ( github 有)

( server )我的 debian, /etc/dnsmasq.conf 修改此文件即可。都是很明白的英文注释,一看就懂。教程自行 google
tony1016
2015-11-03 13:16:58 +08:00
@lxj12328 有很多项目都可以在本机建立一个 DNS 中转,中转到一个非 53 端口上去

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/232968

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX