klequis / coding-notebook

notes on coding issues
MIT License
0 stars 0 forks source link

NextDNS Setup #11

Open klequis opened 3 years ago

klequis commented 3 years ago

Setup

Overview

Steps

  1. Use the following in /etc/systemd/resolved.conf:

[Resolve] DNS=45.90.28.0#66b968.dns1.nextdns.io DNS=2a07:a8c0::#66b968.dns1.nextdns.io DNS=45.90.30.0#66b968.dns2.nextdns.io DNS=2a07:a8c1::#66b968.dns2.nextdns.io DNSOverTLS=yes DNSStubListener=no

  1. Create a symbolic link for /run/systemd/resolve/resolv.conf with /etc/resolv.conf as the destination:
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
  1. Restart computer

  2. Setup a config/profile and not the config ID (listed as 'ID' on the config's Setup page)

  3. Follow manual install instructions at Manual install

  4. Implement conditional config This config will put machine with specified MAC address to config ID 123456 and all other machines on network to 546789.

    sudo nextdns config set \
    -config 00:1c:42:2e:60:4a=123456 \
    -config 546789
    sudo nextdns restart
  5. Install on other machines To have NextDNS manage another computer on the network you must install NextDNS on the additional machine(s):

    • setup as router
    • specify config ID

Notes

Frequent commands

nextdns config list

Resources