infinet / dnsmasq Goto Github PK
View Code? Open in Web Editor NEWdnsmasq fork with fast ipset/server/address lookup
License: GNU General Public License v2.0
dnsmasq fork with fast ipset/server/address lookup
License: GNU General Public License v2.0
原因是这样的,我有2个ipset列表,gfwlist和adbybylist,然后在dnsmasq.d下有他们2个的文件gfwlist.conf和adbybylist.conf,我想实现的功能是,如果同一个域名比如abc.com同时在gfwlist.conf和adbybylist.conf都有,当解析这个域名时,希望能同时写到ipset的gfwlist和adbybylist这二个列表里。
但实际上现在只会写到ipset其中的一个表里,可能是先从哪个文件遍历到就写到对应的ipset列表里。
请问这个功能目前可以实现吗?
导致访问谷歌play市场出现DF-DFERH-01错误。
Is there any Makefile for OpenWRT or updated precompiled package? Thanks.
环境:armbian 9+aarch64,用你的源码编译的dnsmasq,用了有2个多月了,非常好没遇到什么BUG,今天巧合用tcpdump抓包发现all-servers参数无效,这个参数的意思是向所有dns都发起请求,接收最先返回的结果。
用tcpdump抓包发现大多时候只向第2个dns发送请求,偶尔向第一个dns发请求,然后我做了些测试:
1.多次重启dnsmasq依然不生效。
2.换用原版的dnsmasq,配置文件不做任何修改,有效了,会同时向2个DNS发送请求。
下面是配置文件,请老哥看看怎么回事:
no-resolv
bogus-priv
cache-size=1024
listen-address=127.0.0.1,192.168.20.35,192.168.21.1
conf-dir=/etc/dnsmasq.d
all-servers
server=114.114.114.114
server=119.29.29.29
dnsmasq: failed to create listening socket for port 53: Permission denied
安装的是预编译包ar71xx,sha1是0a1a7c13714e982b2cf98b33fe16d572f3d1a58d。
如果在dnsmasq.conf里写server=/apple.com/114.114.114.114
那么log就会是这个结果
using nameserver 114.114.114.114#53 for domain apple.com
using nameserver 114.114.114.114#53
就是说他不光是apple.com的上游,他还应用到root上去了。原版不会这样,log只有第一行。
版本:V2.77test4 最新
系统:lede-17.01.0
Makefile和patches来自lede master源: https://github.com/cpexplorer/openwrt-dnsmasq-fastlookup/tree/v2.77test4
启用这个ss-rss:的gfwlist后,每次都是过一小会儿都无法上网,重启dnsmasq后能上一瞬间后又陷入循环了
https://github.com/cpexplorer/Luci/tree/master/luci-app-shadowsocks-rss
希望改下缓存时间。。谢谢!
min-cache-ttl=3600s 是默认。。不能改1天!
还有cache-size问题,最大多少?
The v2.73 coming soon.
According to tcpdump and log.
感谢大神,我主要用在openwrt上,路由器本身性能就不比pc,再加上现在整个china list已经大到1.3M,用原版的dnsmasq,实在力不从心。所以还是麻烦大神再写个邮件催一下原作者吧。
谢谢!
Users of your software that enable DNSSEC will not be able to validate DNS after October the 11th 2018.
Your repository contains a trust-anchors.conf file without the new DNSSEC trust-anchors:
trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
It should also include:
trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
More information can be found at: https://www.icann.org/resources/pages/ksk-rollover
Please don’t hesitate to get in touch.
Warmly,
Roy Arends
ICANN
分支:
v2.77test4
复现场景:
当 --cache-size
大于 0 且开启 --proxy-dnssec
,
upstream 已选择支持 DNSSEC 的公共服务(如 8888 ),
首次查询 paypal.com 等域名有 RRSIG 记录,
第二次查询时则没有。
规避方法:
关闭缓存,即将 --cache-size
设为 0
。
dnsmasq -v
Dnsmasq version UNKNOWN Copyright (c) 2000-2015 Simon Kelley
编译安装使用,比原版dnsmasq占用cpu要小。
但在某些情况下,在ipset域名以外的域名,偶尔会出现不能解析。
换回原版dnsmasq现象消失。
目前这个版本进度如何?目前可以日常使用么?
lede :17.01.0
编译的版本:2.77 test4
错误提示:
mipsel-openwrt-linux-musl-gcc -L/home/acm-zjc/build/lede_17.01.0_d1/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/lib -L/home/acm-zjc/build/lede_17.01.0_d1/staging_dir/target-mipsel_24kc_musl-1.1.16/lib -L/home/acm-zjc/build/lede_17.01.0_d1/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/usr/lib -L/home/acm-zjc/build/lede_17.01.0_d1/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/lib -znow -zrelro -Wl,--gc-sections -o dnsmasq cache.o rfc1035.o util.o option.o forward.o network.o dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o helper.o tftp.o log.o conntrack.o dhcp6.o rfc3315.o dhcp-common.o outpacket.o radv.o slaac.o auth.o ipset.o domain.o dnssec.o blockdata.o tables.o loop.o inotify.o poll.o rrfilter.o edns0.o arp.o -L/home/acm-zjc/build/lede_17.01.0_d1/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/lib -lnetfilter_conntrack -lnfnetlink -L/home/acm-zjc/build/lede_17.01.0_d1/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/lib -lnettle -lhogweed -lgmp /home/acm-zjc/build/lede_17.01.0_d1/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/lib/gcc/mipsel-openwrt-linux-musl/5.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: copy reloc against protected
__stack_chk_guard' is dangerous
option.o: In function $L1637': option.c:(.text.one_opt+0x12f8): undefined reference to
htree_new_node'
option.c:(.text.one_opt+0x1340): undefined reference to domain_find_or_add' option.c:(.text.one_opt+0x138c): undefined reference to
lookup_or_install_new_server'
option.c:(.text.one_opt+0x15c0): undefined reference to htree_new_node' option.c:(.text.one_opt+0x15d6): undefined reference to
htree_new_node'
option.c:(.text.one_opt+0x15ee): undefined reference to htree_find_or_add' option.c:(.text.one_opt+0x161a): undefined reference to
domain_find_or_add'
forward.o: In function search_servers': forward.c:(.text.search_servers+0x24): undefined reference to
domain_match'
forward.o: In function process_reply': forward.c:(.text.process_reply+0x2c): undefined reference to
domain_match'
collect2: error: ld returned 1 exit status
make[4]: *** [dnsmasq] Error 1
make[4]: Leaving directory /home/acm-zjc/build/lede_17.01.0_d1/build_dir/target-mipsel_24kc_musl-1.1.16/dnsmasq-full/dnsmasq-2.77/src' make[3]: *** [all] Error 2 make[3]: Leaving directory
/home/acm-zjc/build/lede_17.01.0_d1/build_dir/target-mipsel_24kc_musl-1.1.16/dnsmasq-full/dnsmasq-2.77'
make[2]: *** [/home/acm-zjc/build/lede_17.01.0_d1/build_dir/target-mipsel_24kc_musl-1.1.16/dnsmasq-full/dnsmasq-2.77/.built] Error 2
make[2]: Leaving directory /home/acm-zjc/build/lede_17.01.0_d1/package/network/services/dnsmasq' make[1]: *** [package/network/services/dnsmasq/compile] Error 2 make[1]: Leaving directory
/home/acm-zjc/build/lede_17.01.0_d1'
make: *** [package/network/services/dnsmasq/compile] Error 2`
how to disabled ipv6?
I have bind interface and set listen-address,but I find AAAA queries in the log all the same.
Could you upload a precompiled package for Lede please, Thanks a lot
ipfs.io的ipk包下载不了,请求重新上传
石像鬼qos一开,wifi就会无限断线重启。
openwrt: cc 15.05.1 最新
石像鬼:1.9.2 最新
dnsmasq-fastlookup:2.77test4 最新commit
问题很严重,需求是这样的:
dnsmasq仅仅是作为本地解析器,不转发非本地规则,即充当权威DNS。
当配置no-resolv,不配置默认address的时候,如果向该DNS发起本地解析不了的请求时,进程直接崩溃
出现如下系统日志:
kernel: [3659405.869328] dnsmasq[21654]: segfault at 50 ip 000055daa8d75480 sp 00007ffebb397d60 error 4 in dnsmasq[55daa8d59000+48000]
我通过光猫桥接到软路由pppoe上网,用openwrt的v2ray翻墙,国内连接都正常,服务器端使用动态端口,但每天无数次国外断线,是什么原因?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.