如何解决dnsmasq dhcp dns-dhcp警告提示

如何解决dnsmasq-dhcp警告提示_百度知道
如何解决dnsmasq-dhcp警告提示
我有更好的答案
本帖最后由 okay008 于
20:08 编辑
dnsmasq-dhcp提示图.jpg (53.74 KB, 下载次数: 0)
保存到相册
11:43 上传
nwan虚拟了一个VTH1,并发双拨成功,出现上图问题,请问如何解决这个问题。
在/etc/config/network 中配置过2个wan的mac地址,例如
config 'interface' 'wan'
option 'ifname' 'eth1'
option '_orig_ifname' 'eth1'
option '_orig_bridge' 'false'
option 'proto' 'pppoe'
option 'username' '***'
option 'password' '***'
option 'ghcat' '0'
option 'macaddr' '54:E6:FC:1A:C3:A1'
option 'auto' '0'
option 'defaultroute' '0'
config 'interface' 'wan1'....也是类...
其他类似问题
为您推荐:
dnsmasq的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁关于dnsmasq失效。( 已找到原因) - 提交BUG或建议 -
Tomato DualWAN 论坛
- Powered by Discuz!
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
关于dnsmasq失效。( 已找到原因)
本帖最后由 ptu 于
14:00 编辑
tomato dual 539 固件的dnsmasq 过几个小时就失效,不使用dnsmasq中设置的dns解析。
我使用的是默认设置,就是勾选了开启内置dns和prevent dns-rebind attracks,试了几天了都是这样。不知道是不是bug。
已找到原因在11楼。
感谢找出原因! &&威望 + 2
帖子1361&精华0&积分2151&威望0 &贡献0 &番茄1539 个&注册时间&
目前ZD的这个是个BUG,你应该勾选&截获DNS端口(UDP 53)&,DNSMASQ才可生效,希望ZD能修复这个问题。
据说番茄TT很不错哦,买来玩玩看
帖子3193&精华0&积分4763&威望16 &贡献0 &番茄3745 个&注册时间&
请楼主给出详细的描述和截图
帖子1361&精华0&积分2151&威望0 &贡献0 &番茄1539 个&注册时间&
tomato dual 539 固件的dnsmasq 过几个小时就失效,不使用dnsmasq中设置的dns解析。
我使用的是默认设置, ...
ptu 发表于
对,请根据admin精神指示,上图和详细描述。另外,我的怎么设置dnsmasq中设置的dns解析不管用呢?
据说番茄TT很不错哦,买来玩玩看
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
本帖最后由 ptu 于
18:49 编辑
根据精神我来详细描述和上图。
电脑ip采用自动获得网管同是,自动获得网关为路由ip
在路由器重启后访问正常。若干小时后就不能正常解析youtube域名。采用nslookup 检查不能获得正确ip。分析有两种可能1、dnsmsaq不正常,不能解析。2、vpn不正常,由于解析youtube用的是谷歌的服务器,走的是vpn线路vpn不正常后导致解析故障。根据本人判断dnsmsaq出问题的可能性大,因为在出现访问错误的时候从路由状态来看adsl拨号和vpn都正常。
总的来所我这样的设置情况,路由访问dnsmsaq中自定的域名访问工作不稳定,不定时出现无法访问的问题。
另外vpn智能路由设置存在字节限制,受限与nvram空间大小,不能超过1000+以上个ip地址。希望可以改变。
附件: 您需要才可以下载或查看附件。没有帐号?
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
本帖最后由 ptu 于
20:25 编辑
刚才发生问题了7:19分不可访问了。以下7:19的log
Nov&&9 19:00:01
root: -- MARK --
Nov&&9 19:19:18
dnsmasq[20308]: exiting on receipt of SIGTERM
Nov&&9 19:19:18
dnsmasq[28118]: started, version 2.55 cachesize 512
Nov&&9 19:19:18
dnsmasq[28118]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts TFTP
Nov&&9 19:19:18
dnsmasq-dhcp[28118]: DHCP, IP range 192.168.2.100 -- 192.168.2.149, lease time 1d
Nov&&9 19:19:18
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:18
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: reading /etc/resolv.dnsmasq
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 192.168.1.1#53
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 221.228.255.1#53
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 61.177.7.1#53
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:19:19
dnsmasq[28118]: read /etc/hosts - 2 addresses
Nov&&9 19:19:19
dnsmasq[28118]: read /etc/hosts.dnsmasq - 1 addresses
Nov&&9 19:19:22 unknown daemon.notice miniupnpd[20467]: received signal 15, good-bye
Nov&&9 19:19:22
syslog: SNet version started
Nov&&9 19:19:22 unknown daemon.notice miniupnpd[28262]: HTTP listening on port 23307
Nov&&9 19:19:22 unknown daemon.err miniupnpd[28262]: setsockopt(udp, IP_ADD_MEMBERSHIP): Address already in use
Nov&&9 19:19:22 unknown daemon.warn miniupnpd[28262]: Failed to add multicast membership for address 192.168.2.1
Nov&&9 19:19:23 unknown user.notice root: Start PolicyRouting ...
Nov&&9 19:19:24 unknown user.notice root: WAN1_IFACE:ppp0, WAN1_IP:180.106.210.251, WAN1_GATEWAY:180.106.210.251
Nov&&9 19:19:24 unknown user.notice root: WAN2_IFACE:eth1, WAN2_IP:192.168.1.5, WAN2_GATEWAY:192.168.1.1
Nov&&9 19:19:24 unknown user.notice root: disable rp_filter
Nov&&9 19:19:26 unknown user.notice root: set WAN1 route(180.106.210.251) for DNS:61.177.7.1
Nov&&9 19:19:26 unknown user.notice root: set WAN1 route(180.106.210.251) for DNS:221.228.255.1
Nov&&9 19:19:26 unknown user.notice root: set WAN2 route(192.168.1.1) for DNS:192.168.1.1
Nov&&9 19:19:26 unknown user.notice root: set WAN2 route(192.168.1.1) for DNS:192.168.1.1
Nov&&9 19:19:26 unknown user.notice root: set QQ&MSN via WAN1...
Nov&&9 19:19:26 unknown user.notice root: set route table 100...
Nov&&9 19:19:27 unknown user.notice root: set route table 200...
Nov&&9 19:19:27 unknown user.notice root: set default router with load-balance
Nov&&9 19:19:27 unknown user.notice root: clear route cache...
Nov&&9 19:19:27 unknown user.notice root: Start PolicyRouting success.
以后youtube域名不可解析了。nslookup
和 nslookup
8.8.8.8 都不能解析。看来是8.8.8.8不从vpn走了,域名解析被劫持和污染。问题似乎不是dnsmsaq,是vpn的问题。adsl拨号和pptp拨号没有断过。似乎路由从19:19:18起没有刷新vpn。
手工断开pptp然后重新拨号,nslookup 检查仍不能正确解析,nslookup
8.8.8.8 可以正确解析。浏览器打开youtube网页仍然打不开。
附重新拨号log
Nov&&9 19:50:40
pptp[11528]: Terminating on signal 15
Nov&&9 19:50:40
pptp[11528]: Connect time 604.4 minutes.
Nov&&9 19:50:40
pptp[11528]: Sent 2249843 bytes, received
Nov&&9 19:50:40 unknown daemon.notice pptp[11528]: Connection terminated.
Nov&&9 19:50:40 unknown daemon.warn pptp[25678]: Non-zero Async Control Character Maps are not supported!
Nov&&9 19:50:50
pptp[29141]: Plugin /usr/lib/pppd/pptp.so loaded.
Nov&&9 19:50:50
pptp[29141]: PPTP plugin version 0.8.5 compiled for pppd-2.4.5, linux-2.6.22.19
Nov&&9 19:50:50 unknown daemon.notice pptp[29141]: pppd 2.4.5 started by root, uid 0
Nov&&9 19:50:52
pptp[29141]: Using interface ppp1
Nov&&9 19:50:52 unknown daemon.notice pptp[29141]: Connect: ppp1 &--& pptp (174.139.101.242)
Nov&&9 19:50:54 unknown daemon.warn pptp[29153]: Non-zero Async Control Character Maps are not supported!
Nov&&9 19:50:54 unknown daemon.notice pptp[29141]: PAP authentication succeeded
Nov&&9 19:50:55 unknown daemon.notice pptp[29141]: local&&IP address 10.0.5.17
Nov&&9 19:50:55 unknown daemon.notice pptp[29141]: remote IP address 10.0.5.1
Nov&&9 19:52:10
dnsmasq[28118]: reading /etc/resolv.dnsmasq
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 192.168.1.1#53
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 221.228.255.1#53
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 61.177.7.1#53
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
Nov&&9 19:52:10
dnsmasq[28118]: using nameserver 8.8.8.8#53 for
电脑ipconfig /flushdns 清除dns缓存和重启都没有解决解析问题,通过重启路由后必须重启电脑(win7)故常才解决,通过验证看来bug主要在于日志中daemon.notice miniupnpd[20467]: received signal 15, good-bye到unknown user.notice root: Start PolicyRouting success.之间,可能是服务更新没有把vpn状态包括在内。请zd检查证实。
帖子1361&精华0&积分2151&威望0 &贡献0 &番茄1539 个&注册时间&
请勾上截获53 UDP
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
本帖最后由 ptu 于
16:22 编辑
11月10日故障再现,经试验在adsl和拨号连接都正常的情况下,所有在vpn智能路由中设置的ip都不走vpn,直接走默认网关出去。
根据楼上建议勾选截获dns端口,路由重启,故障依旧,不勾选截获dns,重启后故障消失。看来我和楼上的设置不同。
以下日志中发现pptp_client_iface&&is invalid
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 192.168.1.1#53
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 221.228.255.1#53
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 61.177.7.1#53
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 8.8.8.8#53 for
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 8.8.8.8#53 for
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 8.8.8.8#53 for
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 8.8.8.8#53 for
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 8.8.8.8#53 for
Nov 10 20:08:09
dnsmasq[4569]: using nameserver 8.8.8.8#53 for
Nov 10 20:08:09
dnsmasq[4569]: read /etc/hosts - 2 addresses
Nov 10 20:08:09
dnsmasq[4569]: read /etc/hosts.dnsmasq - 1 addresses
Nov 10 20:08:10 unknown user.debug init[1]: pptp_rebuild_iptables: pptp_client_iface&&is invalid!
Nov 10 20:08:12
pptp[3147]: Using interface ppp1
Nov 10 20:08:12 unknown daemon.notice pptp[3147]: Connect: ppp1 &--& pptp (174.139.101.242)
Nov 10 20:08:14 unknown daemon.warn pptp[4615]: Non-zero Async Control Character Maps are not supported!
Nov 10 20:08:14 unknown daemon.notice pptp[3147]: PAP authentication succeeded
Nov 10 20:08:14 unknown daemon.notice pptp[3147]: local&&IP address 10.0.5.23
Nov 10 20:08:14 unknown daemon.notice pptp[3147]: remote IP address 10.0.5.1
Nov 10 20:14:18
dnsmasq-dhcp[4569]: DHCPDISCOVER(br0) d8:b3:77:51:80:3a
Nov 10 20:14:18
dnsmasq-dhcp[4569]: DHCPOFFER(br0) 192.168.2.116 d8:b3:77:51:80:3
看来好像是vpn智能路由出问题。导致设置的ip不从vpn走。造成dnamsaq不正常解析的假象,搞不清是dnsmsaq处问题还是vpn智能路由出问题??? 请zd帮忙看看。
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
本帖最后由 ptu 于
22:17 编辑
今天再次试验,不能浏览youtube时,进入telnet发现的确是vpn智能路由中设置的ip不从vpn走,vpn网关10.0.5.1,造成dns8.8.8.8解析域名不正确。现在基本可以确认是vpn智能路由出的问题。请zd看看。
重启vpn服务后,ip route get 8.8.8.8是从vpn走了,但是浏览器打开youtube依然不行,以为是dns缓存的缘故,清除缓存,电脑重启后,youtube没有恢复,twitter和facebook可以访问,另外用ipad打开youtube可以,让我摸不着头脑了。请高人指点。
经过分析,我猜想会与会是dnsmsaq解析时用的是缓存,所以造成部分域名解析调用缓存中的不正确ip,部分以前没有访问过的用了google的dns解析正确。
经过试验的确是dnsmsaq的缓存问题,重启dnsmsaq服务后恢复了。
问题基本弄清现总结如下:
vpn经过一段时间运行后,路由在更新服务(Start PolicyRouting 中没有更新vpn自定义路由表)或某些情况下,造成vpn智能路由中自定义中的dns ip不从vpn走,从而域名解析不正确,在重启vpn后,vpn智能路由恢复,但访问过的域名缓存在dnsmsaq中,必须在重启dnsmsaq服务后才恢复原有功能。以上是本人认为的bug原因,请查证并修复bug。
我不知道我情况描述清楚了没有?希望为zd的下次更新提供更有用的信息,来完善tomato dualwan。
附件: 您需要才可以下载或查看附件。没有帐号?
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
本帖最后由 ptu 于
11:04 编辑
经过一个晚上现象再现,打不开youtube,查找原因发现,域名解析正确,经一步查找,原来是
vpn中的自定义路由以x.x.x.x形式可以走vpn,以x.x.x.x/x掩码方式都不走vpn了。重启路由后恢复。
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
进一步找到原因:
因为policyroute-start.sh 中
#8. AssignOUT 规则
ip rule add fwmark 0x100/0xf00 table 100 prio 110
ip rule add fwmark 0x200/0xf00 table 200 prio 110
# vpn, 已经在pptp.c中实现
#ip rule add fwmark 0x500/0xf00 table 250 prio 110
vpn, 已经在pptp.c中实现,造成再次执行policyroute-start.sh没有执行ip rule add fwmark 0x500/0xf00 table 250 prio 110该命令,路由规则缺失,vpn自定义路由失效。请zd修正。
帖子3193&精华0&积分4763&威望16 &贡献0 &番茄3745 个&注册时间&
感谢楼主提供的线索,初步分析是双WAN其中一条断线重拨后没能恢复VPN的策略路由导致的,故障重现步骤:
例如PPTP是通过WAN2连接服务器的,此时把WAN1断开再重连,就会出现上述问题。
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
很高兴找到原因,希望把这个问题列入下一版的修正计划。
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
我直接把policyroute-start.sh 中把#ip rule add fwmark 0x500/0xf00 table 250 prio 110这条命令的注释去掉,让这条命令重复执行一次。来临时解决这个问题。
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
经过试验发现,不能通过简单的运行一条命令解决问题。
帖子3193&精华0&积分4763&威望16 &贡献0 &番茄3745 个&注册时间&
修正这个bug需要做2步:
1. 执行 ip rule add fwmark 0x500/0xf00 table 250 prio 110
2. 重建vpn的智能路由表
你改脚本只是实现第1步,还是等下一内测版的固件吧,现在TTDW基本上一月一个内测版
帖子22&精华0&积分56&威望0 &贡献0 &番茄23 个&注册时间&
顶顶顶!~~~~~
帖子7&精华0&积分28&威望0 &贡献0 &番茄128 个&注册时间&
敬重 admin 务实求真的态度,继续支持 dualwan,顶!
帖子14&精华0&积分24&威望2 &贡献0 &番茄56 个&注册时间&
支持admin,&&支持dualwan!!!
帖子3193&精华0&积分4763&威望16 &贡献0 &番茄3745 个&注册时间&
这个BUG会在540中修复
[通过 QQ、MSN 分享给朋友]Dnsmasq [OpenWrt Wiki]Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network.
Using dnsmasq as DNS and DHCP serverThe Dynamic Host Configuration Protocol (DHCP) is a networking service used on IP computer networks, ... dhcp-option=6, 192.168.0.1(DNS server) service dnsmasq .../IA/lab/Lab8-Using dnsmasq as DNS and DHCP...Dnsmasq - Community Help WikiDNSmasq provides two services, either of which can be used independently. DNS DHCP service (including features relating to network boot)
DNS and DHCP configuration [OpenWrt Wiki]The dnsmasq and dhcpd configuration is located in /etc/config/dhcp and controls both DNS and DHCP server options on the device (both DHCP and DNS services are ...
dnsmasq - ArchWiki - Arch Linuxdnsmasq provides services as a DNS cacher and a DHCP server. As a Domain Name Server (DNS) it can cache DNS queries to improve connection speeds to previously …
DNSMASQ - LEAF Projectdnsmasq is a lightweight DNS and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN. Dnsmasq accepts DNS queries and either answers them ...
DNSmasq - 必应网典OK, after MUCH experimentation, I found I had to push the option manually. In the dnsmasq.conf file, I added the following line:dhcp-option=6,like so: dhcp... 问 Can't get ...
HOWTO: Setup dnsmasq as DNS DHCP - Beware …This description of dnsmasq shamelessly take from the dnsmasq home page. dnsmasq is a lightweight DNS, TFTP, PXE, router advertisement and DHCP server.
Ubuntu Manpage: dnsmasq - A lightweight DHCP …Provided by: dnsmasq_2.25-1_i386 NAME dnsmasq - A lightweight DHCP and caching DNS server. SYNOPSIS dnsmasq [OPTION]... DESCRIPTION dnsmasq is a …
Ubuntu Manpage: dnsmasq - A lightweight DHCP …Provided by: dnsmasq-base_2.63-1ubuntu1_i386 NAME dnsmasq - A lightweight DHCP and caching DNS server. SYNOPSIS dnsmasq [OPTION]... DESCRIPTION dnsmasq …On Mon, 23 Oct 2006, Claudio Roberto Cussuol wrote:
& I will keep the first question: Is it possible to have an option to
& disable the dns part of dnsmasq?
That I've seen?
Sort of: Just change the port dnsmasq's DNS resolver
listens on.
Add, for instance:
to your dnsmasq.conf, restart, and it should bind to 54 instead of 53.
Firewall off traffic to port 54, and it's invisible.
I don't recommend th I'm just using it in one
corner case where I have 31 zones being served up on the same box as
While dnsmasq is awesome for local caching, it's not designed
for serving up lots of authoritative DNS (at least, not that I've seen
Thanks to Simon for the great work, by the way.
Previous message:
Next message:
Messages sorted by:}

我要回帖

更多关于 dnsmasq dhcp dns 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信