What's new

DNSMASQ add ip address range?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

bartimeaus

Occasional Visitor
Background. Using AX88u with Astrill's VPN applet in China. Currently having slow downs with accessing local chinese apps and websites hence I've decided to use https://github.com/felixonmars/dnsmasq-china-list to redirect a list of chinese website address to use the local DNS.

Is there a way to confiqure dnsmasq to cover the full range of chinese ip addresses to use a specified DNS server?

I've looked at https://pymumu.github.io/smartdns/ReadMe_en.html#asus-router-native-firmware-/-merlin-firmware but I have no idea how to set it up
 
To use those prebuilt lists you would have to download the ones you want to use and append their contents to the end of /jffs/configs/dnsmasq.conf.add. Of course this creates problems if that file already exists or you ever want to update the file in the future.

A better alternative might be to write a dnsmasq.postconf script that appends the contents of those files directly to /etc/dnsmasq.conf.

Custom config files · RMerl/asuswrt-merlin.ng Wiki · GitHub
 
Last edited:
Yeah, I have already done the dnsmasq.conf.add file and confirmed that dnsmasq.d was updating. However the prebuilt list named dnsmasq-china-list isn't as comprehensive as I'd like.

I have no idea how to setup the SmartDNS script and I'm not sure if dnsmasq supports ip ranges as I'm able to find an entire list of IP address ranges for the entirety of China
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top