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!

NextDNS CLI with Guestnetwork Pro

K3r1m0

Occasional Visitor
Hi,
I have installed NextDNS CLI on my router and all my devices are displayed in nextdns dashboard. I want my devices on Guest Network with a separate subnet to also connect to NextDNS CLI so those devices are displayed. I can't get it to work even though I have given access to intranet. The only way I have succeeded is to enter NextDNS IP addresses as DNS servers for the guest network, but then the device name is not displayed, only the IP address of the router.
I am using Guest Network PRO on 3006.102.5
Anyone know if it works?
 
For my own experience there is no easy way for this unless you use iptable rules to redirect all guest networks to where nextdns cli does the capture, 127.0.0.1:53. One solution that i use for my vpns it so use a different profile so its easier to identify what devices is quering what without it being identified by nextdns, but if you have ton of devices on the guest network it could be next to doing nothing.
 
In an untested theory, you could add the same commands to dnsmasq-sdn.postconf as in dnsmasq.postconf and see if it works.
Code:
#!/bin/sh
# Configuration generated by NextDNS

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

if [ -f /tmp/nextdns.pid ] && [ -d "/proc/$(sed -n '1p' /tmp/nextdns.pid)" ]; then
    pc_append "no-resolv" "$CONFIG"
    pc_delete "servers-file" "$CONFIG"           # disconnect dnsmasq from WAN DNS settings
    pc_delete "resolv-file" "$CONFIG"            # disconnect dnsmasq from WAN DNS settings
    pc_append "server=127.0.0.1#5342" "$CONFIG"  # point dnsmasq to NextDNS listener IP:port
    pc_delete "stop-dns-rebind" "$CONFIG"        # disable DNS rebind if enabled
    pc_delete "trust-anchor=" "$CONFIG"          # disable DNSSEC
    pc_delete "dnssec" "$CONFIG"                 # disable DNSSEC
    pc_append "add-mac" "$CONFIG"
    pc_append "add-subnet=32,128" "$CONFIG"
fi

## NextDNS END
 

Similar 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