dnsmasq setup with NextDNS
I found this guide : https://github.com/nextdns/nextdns/wiki/DNSMasq-Integration but I think it may require some clarifications, it is a little raw right now.
I'm using NextDNS cli on my Macbook and I need to use also dsnmasq. Whenever I issue
I loose internet connectivity.
Help would be appreciated.
When changing NextDNS port, I get :
sh-3.2# nextdns activate Error: activate: 127.0.0.1:5555: non 53 port not supported
This is not even consistent with this doc: https://github.com/nextdns/nextdns/wiki/Configuration-File-Format
# Example configuration for NextDNS. listen :5353 setup-router yes report-client-info yes
I made it work for a while: dnsmasq was properly resolving local lookups and forwarding to nextdns on port 5555. Even my.nextdns.io was showing "You are using nextdns".
But this is unstable: I connected to a distant VPN for a while. When I logged out, I could not resolv external lookups (internal lookups were still working fine).
sh-3.2# telnet localhost 53 Trying ::1... Connected to localhost. Escape character is '^]'.
sh-3.2# telnet localhost 5555 Trying ::1... Connected to localhost. Escape character is '^]'.
sh-3.2# nslookup hello.test Server: 127.0.0.1 Address: 127.0.0.1#53 Name: hello.test Address: 127.0.0.1
sh-3.2# nslookup google.com Server: 127.0.0.1 Address: 127.0.0.1#53 ** server can't find google.com: REFUSED
A nextdns restart did not fix.
Any help would be appreciated.