Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextDNS 1.4.1 Ignoring config file #44

Closed
mrancier opened this issue Jan 3, 2020 · 9 comments
Closed

NextDNS 1.4.1 Ignoring config file #44

mrancier opened this issue Jan 3, 2020 · 9 comments

Comments

@mrancier
Copy link

mrancier commented Jan 3, 2020

NextDNS install script succeeds in pfSense, but it ignores the config in /usr/local/etc. No matter what I do or change it always wants to listen on 53, rather than an alternate port.

@rs
Copy link
Contributor

rs commented Jan 3, 2020

What do you get for nextdns config?

@mrancier
Copy link
Author

mrancier commented Jan 3, 2020

flag provided but not defined: -use-hosts
and help stuff

@mrancier
Copy link
Author

mrancier commented Jan 3, 2020

log-queries false
report-client-info true
detect-captive-portals false
hardened-privacy false
bogus-priv true
listen localhost:5353
config ######
timeout 5s
auto-activate true
use-hosts true
setup-router true

@mrancier
Copy link
Author

mrancier commented Jan 3, 2020

Except for the port, everything was script generated. And, it seems to me, the flag is defined. Even masking the option it starts trying to run on port 53. Now it say the same as setup-router.

@rs
Copy link
Contributor

rs commented Jan 3, 2020

setup-router ignores listen.

@mrancier
Copy link
Author

mrancier commented Jan 3, 2020

So masking both options the daemon starts in the right port and resolves. Something appears to be amiss with the parsing of args.

@mrancier
Copy link
Author

mrancier commented Jan 3, 2020

Thanks for your help. Not sure why the use-host option bombs out, but the error on setup router is a bit unclear as it is defined, it simply overrides the Listen directive, which seems not possible (for good reason)

@rs
Copy link
Contributor

rs commented Jan 3, 2020

The help explains it:

  -setup-router
    	Automatically configure NextDNS for a router setup.
    	Common types of router are detected to integrate gracefuly. Changes applies are
    	undone on daemon exit. The listen option is ignored when this option is used.

Basically setup-router is an automatic configuration for routers. If you want to do manual setup, don't use this option. We will make both options exclusive with a more explicit message.

About the use-hosts, if it says it's not implemented, it means you downgraded the nextdns binary to a previous version.

@rs
Copy link
Contributor

rs commented Jan 4, 2020

Closing, please reopen if you have more questions or concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants