Code Monkey home page Code Monkey logo

dnsmasq's Issues

请教一个域名能否同时添加到2个ipset列表里?

原因是这样的,我有2个ipset列表,gfwlist和adbybylist,然后在dnsmasq.d下有他们2个的文件gfwlist.conf和adbybylist.conf,我想实现的功能是,如果同一个域名比如abc.com同时在gfwlist.conf和adbybylist.conf都有,当解析这个域名时,希望能同时写到ipset的gfwlist和adbybylist这二个列表里。

但实际上现在只会写到ipset其中的一个表里,可能是先从哪个文件遍历到就写到对应的ipset列表里。

请问这个功能目前可以实现吗?

老哥,all-servers参数无效

环境: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

为特定域指定的上游会同时应用到根域

安装的是预编译包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只有第一行。

please update root-zone trust-anchors in trust-anchors.conf file

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

开启缓存时 --proxy-dnssec 仅作用于首次查询

分支:
v2.77test4

复现场景:
--cache-size 大于 0 且开启 --proxy-dnssec
upstream 已选择支持 DNSSEC 的公共服务(如 8888 ),
首次查询 paypal.com 等域名有 RRSIG 记录,
第二次查询时则没有。

规避方法:
关闭缓存,即将 --cache-size 设为 0

某些域名会无法解析

编译安装使用,比原版dnsmasq占用cpu要小。
但在某些情况下,在ipset域名以外的域名,偶尔会出现不能解析。
换回原版dnsmasq现象消失。

lede下编译出错

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

how to disabled ipv6?
I have bind interface and set listen-address,but I find AAAA queries in the log all the same.

小米路由器 R2D dnsmasq的DNS解析无法使用

我用的是小米路由R2D 其它都是正常的,只有DNS功能解析无法使用,是怎么回事?
在路由器里ping 不通任何域名,换回原厂的dnsmasq是正常的。

image

我晕!现在又可以用了。

image

现在又无法使用了,老是这样重复的,自动关,自动开。
我也不知道怎么回事。
还请作者告知一二。

实测跟石像鬼严重冲突

石像鬼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]

v2ray每天不定时断线

我通过光猫桥接到软路由pppoe上网,用openwrt的v2ray翻墙,国内连接都正常,服务器端使用动态端口,但每天无数次国外断线,是什么原因?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.