[How-To] nextdns

Hi,

For those who are interested in using nextdns [https://nextdns.io], a DOH DNS service.

  1. Enable Developer Mode / SSH into SailfishOS device / devel-su
  2. cd /tmp ; curl -L -o nextdns_1.8.8_linux_armv7.tar.gz https://github.com/nextdns/nextdns/releases/download/v1.8.8/nextdns_1.8.8_linux_armv7.tar.gz
  3. tar xvzf nextdns_1.8.8_linux_armv7.tar.gz
  4. cp nextdns /usr/local/bin
  5. nextdns install
  6. nextdns config set -config [YOUR NEXTDNS ID]
  7. Disable connman dnsproxy
    mkdir /etc/systemd/system/connman.service.d
    vi /etc/systemd/system/connman.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/sbin/connmand -n -W nl80211 --nobacktrace --systemd --noplugin=wifi --nodnsproxy $SYSCONF_ARGS $CONNMAN_ARGS
  1. execute nextdns activate && chattr +i /etc/resolv.conf
  2. reboot device
  3. verify with browser https://test.nextdns.io

Troubleshoot:

  • Check /etc/resolv.conf is pointing to 127.0.0.1
  • systemctl status nextdns.service

Regards,
Jens

1 Like

Hello,

I tried the exact steps and after reboot I have lost Wifi connectivity.
I then tried to remove “–noplugin=wifi” from /etc/systemd/system/connman.service.d/override.conf but then NextDNS is not working.

Anyone running NextDNS under SailfishOS?
A mobile without the ability to filter DNS seems like a bad thing to me.

  • Privateuser

A list of working solutions.

1 Like

This is what I use, and it works like a charm (I’m using AdGuard DNS, but NextDNS could be used as well).