What's new
  • 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!

DNS masq related question

Did your ctrld listener port change recently from port 5354 to 53? The dnsmasq.postconf suggests it was 5354, but the netstat and /etc/dnsmasq.conf show ctrld listening on port 53 and 5353 now, which could also explain the original dnsmasq startup failure.
To be honest, I have no idea - I was running some commands earlier to verify ctrld was working properly and i may have inputted 5354 but more a as verifying measure based on instructions rather than making any any changes. So the ports in these configs should more/less match? maybe i will download the configurations tomorrow again to compare them together. Or if there’s anything else I should do, please let me know. Thank you for all your help.!
 
I
Did your ctrld listener port change recently from port 5354 to 53? The dnsmasq.postconf suggests it was 5354, but the netstat and /etc/dnsmasq.conf show ctrld listening on port 53 and 5353 now, which could also explain the original dnsmasq startup failure.
Yes, thank you, now I see what you are saying, upon regenerating these, now my dnsmasq.conf also shows "server=127.0.0.1#5354" - just like my dnsmasq.postconf which also shows: pc_append "server=127.0.0.1#5354" "$config_file"
Whereas before the dnsmasq showed ""server=127.0.0.1#53"

cat /jffs/scripts/dnsmasq.postconf
# GENERATED BY ctrld - DO NOT MODIFY

#!/bin/sh

config_file="$1"
. /usr/sbin/helper.sh

pid=$(cat /tmp/ctrld.pid 2>/dev/null)
if [ -n "$pid" ] && [ -f "/proc/${pid}/cmdline" ]; then
pc_delete "servers-file" "$config_file" # no WAN DNS settings
pc_append "no-resolv" "$config_file" # do not read /etc/resolv.conf
# use ctrld as upstream
pc_delete "server=" "$config_file"
pc_append "server=127.0.0.1#5354" "$config_file"
pc_delete "add-mac" "$config_file"
pc_delete "add-subnet" "$config_file"
pc_append "add-mac" "$config_file" # add client mac
pc_append "add-subnet=32,128" "$config_file" # add client ip
pc_delete "dnssec" "$config_file" # disable DNSSEC
pc_delete "trust-anchor=" "$config_file" # disable DNSSEC
pc_delete "cache-size=" "$config_file"
pc_append "cache-size=0" "$config_file" # disable cache

# For John fork
pc_delete "resolv-file" "$config_file" # no WAN DNS settings

# Change /etc/resolv.conf, which may be changed by WAN DNS setup
pc_delete "nameserver" /etc/resolv.conf
pc_append "nameserver 127.0.0.1" /etc/resolv.conf

exit 0
fi

# GENERATED BY ctrld - EOF

cat /jffs/configs/dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=pptp*
no-dhcp-interface=pptp*
no-resolv
no-poll
no-negcache
min-port=4096
dns-forward-max=1500
bogus-priv
domain-needed
dhcp-range=lan,192.168.50.2,192.168.50.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.50.1
dhcp-option=lan,252,"\n"
dhcp-authoritative
no-dhcp-interface=tun22
no-dhcp-interface=tun23
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
script-arp
edns-packet-max=1232
ipset=/blocklist.greensnow.co/darklist.de/feodotracker.abuse.ch/iplists.firehol.org/lists.blocklist.de/myip.ms/raw.githubusercontent.com/rules.emergingthreats.net/sigs.interserver.net/blocklist.de/talosintelligence.com/voipbl.org/ipdeny.com/ipapi.co/api.db-ip.com/api.bgpview.io/asn.ipinfo.app/speedguide.net/otx.alienvault.com/github.com/Skynet-WhitelistDomains # Skynet
ipset=/astrill.com/strongpath.net/snbforums.com/bin.entware.net/nwsrv-ns1.asus.com/pool.ntp.org/asuswrt-merlin.net/asuswrt.lostrealm.ca/big.oisd.nl/codeload.github.com/diversion.ch/drv.ms/entware.diversion.ch/entware.net/fwupdate.asuswrt-merlin.net/garycnew.github.io/localhost.localdomain/maurerr.github.io/mirrors.bfsu.edu.cn/mirrors.cernet.edu.cn/Skynet-WhitelistDomains # Skynet
ipset=/mirrors.cqupt.edu.cn/mirrors.nju.edu.cn/oisd.nl/onedrive.live.com/openstreetmap.org/pgl.yoyo.org/pkg.entware.net/small.oisd.nl/someonewhocares.org/sourceforge.net/sunrisesunset.io/urlhaus.abuse.ch/Skynet-WhitelistDomains # Skynet
no-resolv
server=127.0.0.1#5354
add-mac
add-subnet=32,128
cache-size=0
homenet@RT-AX88U_Pro-F4A0:/tmp/home/root#
homenet@RT-AX88U_Pro-F4A0:/tmp/home/root# d
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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