opn-repo icon indicating copy to clipboard operation
opn-repo copied to clipboard

NextDNS Listen Address

Open bradrel opened this issue 1 year ago • 3 comments

Hello - it may be something I'm doing wrong, but I can't get the NextDNS CLI plugin to respect the listen command. I have tried with the auto-activation command as false and true and regardless of what I put it for the listen option, the service starts on 127.0.0.1:53.

Here is my configuration:

config REDACTED cache-size 10MB cache-max-age 0s max-ttl 0s timeout 5s auto-activate false use-hosts false log-queries false detect-captive-portals false bogus-priv false setup-router false listen 192.168.223.1:53 report-client-info false

Here is results of running service:

[admin@brad ~]$ sudo sockstat -4 -l USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root nextdns 93740 7 tcp4 127.0.0.1:53 : root nextdns 93740 8 udp4 127.0.0.1:53 :

Running OPNsense 22.7.4, os-nextdns-community plugin is version 0.3, and Unbound is running on port 5555, no other services using port 53 on any interface.

bradrel avatar Sep 17 '22 15:09 bradrel

Hm, no idea, I dont use the plugin. Maybe you can add a portforward to localhost?

mimugmail avatar Sep 17 '22 15:09 mimugmail

Hm, no idea, I dont use the plugin. Maybe you can add a portforward to localhost?

Thanks, that's a good idea and it works, however it appears to ignore the rest of my config as well. The queries are resolving, but not showing up in the NextDNS console. I'll try to do some more digging.

bradrel avatar Sep 18 '22 14:09 bradrel

I fixed this by editing the run command to point to the configuration file path and then modifying the file to listen on :53

command=/usr/sbin/daemon
command_args="-P ${pidfile} ${name} run -config-file /usr/local/etc/nextdns.conf &"

/usr/local/etc/nextdns.conf

...
listen :53
...

nopjmp avatar Oct 22 '22 20:10 nopjmp