DNS Setting to Google Failed

Hello,

Theese is MY Router Info:

Hostname	OpenWrt
Model	ASUS RT-AC58U
Architecture	ARMv7 Processor rev 5 (v7l)
Target Platform	ipq40xx/generic
Firmware Version	OpenWrt 23.05.5 r24106-10cc5fcd00 / LuCI openwrt-23.05 branch git-24.264.56413-c7a3562
Kernel Version	5.15.167
Local Time	2024-10-16 23:50:58
Uptime	0h 19m 17s
Load Average	0.00, 0.00, 0.00

I tried Modify My DNS to Google 8.8.8.8

Modfiy /etc/config/dhcp:

config dnsmasq
    option domainneeded '1'
    option localise_queries '1'
    option rebind_protection '1'
    option rebind_localhost '1'
    option local '/lan/'
    option domain 'lan'
    option expandhosts '1'
    option readethers '1'
    option leasefile '/tmp/dhcp.leases'
    option localservice '1'
    option ednspacket_max '1232'
    option authoritative '1'
    list interface 'lan'
    option nonegcache '1'
    option doh_backup_noresolv '1'
    list server '8.8.8.8'  # Google DNS
    list server '8.8.4.4'

And Modify /etc/config/dhcp

config dnsmasq
    option resolvfile '/tmp/resolv.conf.auto'
    option noresolv '1'
    list server '8.8.8.8'  # 自定义的 DNS 服务器,例如 Google DNS
    list server '8.8.4.4'

And input uci add_list network.lan.dns='8.8.8.8'

Then reboot router

But input nmap -sV -p 53 localhost

I see CloudFlare DNS Not Apply Google

How Can I fix it?

Thanks!

Do you have some catchall DNAT? Fingerprint should be dnsmasq, not cf

Tried setting the WAN network interface DNS to 8.8.8.8?

screen859

Bear in mind that nmap is saying that your DNS server looks like Cloudflare's public DNS (because it has a similar fingerprint), not that your DNS server is upstreaming the request to Cloudflare's public DNS (nmap cannot know that).

what can I check current use DNS?

You can enable logging on the DNS requests, and watch the logs. Or use tcpdump to inspect the packages. Or use a DNS leak test online site.

1 Like

Hi,I try to set theese to my dhcp file,

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option localservice '1'
	option ednspacket_max '1232'
	option authoritative '1'
	list interface 'lan'
	option nonegcache '1'
	option doh_backup_noresolv '1'
	list server '1.1.1.1'
    list server '1.0.0.1'
 	list server '168.95.1.1'
    option strictorder '1'

And run:

/etc/init.d/dnsmasq restart

It is success apply my set dns
Thanks Every One ~

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.