# sh -c "$(curl -sL https://nextdns.io/install)"
INFO: OS: debian
INFO: GOARCH: amd64
INFO: GOOS: linux
INFO: NEXTDNS_BIN: /usr/bin/nextdns
INFO: INSTALL_RELEASE: 1.47.1
c) Configure NextDNS
r) Remove NextDNS
e) Exit
Choice (default=c): c
NextDNS Profile ID: 6445b3
Sending your devices name lets you filter analytics and logs by device.
Report device name? [Y|n]: y
Accept DNS request from other network hosts.
Setup as a router? (y/n): y
Make NextDNS CLI cache responses. This improves latency and reduces the amount
of queries sent to NextDNS.
Enable caching? (y/n): y
Instant refresh will force low TTL on responses sent to clients so they rely
on CLI DNS cache. This will allow changes on your NextDNS config to be applied
on your LAN hosts without having to wait for their cache to expire.
Enable instant refresh? (y/n): y
Changes DNS settings of the host automatically when NextDNS is started.
If you say no here, you will have to manually configure DNS to 127.0.0.1.
Automatically setup local host DNS? [Y|n]: y
NextDNS installed and started using systemd init
c) Configure NextDNS
r) Remove NextDNS
e) Exit
Choice (default=c): e
================================
# DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"
INFO: OS: debian
INFO: GOARCH: amd64
INFO: GOOS: linux
INFO: NEXTDNS_BIN: /usr/bin/nextdns
INFO: INSTALL_RELEASE: 1.47.1
DEBUG: Start install loop with CURRENT_RELEASE=1.47.1
DEBUG: NextDNS is up to date (1.47.1)
c) Configure NextDNS
r) Remove NextDNS
e) Exit
Choice (default=c): r
INFO: Uninstalling NextDNS...
DEBUG: Using deb uninstall type
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
gyp libc-ares2 libjs-highlight.js libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libssl-dev
libuv1-dev node-chownr node-color-name node-err-code node-extsprintf node-fast-deep-equal node-indent-string node-ini
node-is-typedarray node-json-parse-better-errors node-json-schema node-json-schema-traverse node-qs node-resolve-from
node-through node-typedarray-to-buffer node-universalify node-uuid
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
nextdns
0 upgraded, 0 newly installed, 1 to remove and 103 not upgraded.
After this operation, 9,560 kB disk space will be freed.
(Reading database ... 63459 files and directories currently installed.)
Removing nextdns (1.47.1) ...
DEBUG: Start install loop with CURRENT_RELEASE=
DEBUG: NextDNS is not installed
i) Install NextDNS
e) Exit
Choice (default=i): i
INFO: Installing NextDNS...
DEBUG: Using deb install type
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-transport-https is already the newest version (2.2.4).
The following packages were automatically installed and are no longer required:
gyp libc-ares2 libjs-highlight.js libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libssl-dev
libuv1-dev node-chownr node-color-name node-err-code node-extsprintf node-fast-deep-equal node-indent-string node-ini
node-is-typedarray node-json-parse-better-errors node-json-schema node-json-schema-traverse node-qs node-resolve-from
node-through node-typedarray-to-buffer node-universalify node-uuid
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://pkg.cloudflare.com/cloudflared buster InRelease
Hit:5 https://repo.nextdns.io/deb stable InRelease
Get:6 https://packages.sury.org/php bullseye InRelease [6,136 B]
Err:6 https://packages.sury.org/php bullseye InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
Hit:8 https://deb.nodesource.com/node_22.x nodistro InRelease
Hit:9 https://download.docker.com/linux/debian buster InRelease
Get:13 https://pkgs.tailscale.com/stable/debian bullseye InRelease
Hit:10 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/debian bullseye InRelease
Get:12 https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease [11.9 kB]
Err:12 https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5D87FACA8C27D14E
Hit:7 https://custom-downloads.mariadb.com/legacy/tools/debian bullseye InRelease
Hit:11 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
Fetched 18.5 kB in 22s (832 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dlm.mariadb.com/repo/maxscale/latest/apt bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5D87FACA8C27D14E
W: Failed to fetch https://dlm.mariadb.com/repo/maxscale/latest/apt/dists/bullseye/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5D87FACA8C27D14E
W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
gyp libc-ares2 libjs-highlight.js libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libssl-dev
libuv1-dev node-chownr node-color-name node-err-code node-extsprintf node-fast-deep-equal node-indent-string node-ini
node-is-typedarray node-json-parse-better-errors node-json-schema node-json-schema-traverse node-qs node-resolve-from
node-through node-typedarray-to-buffer node-universalify node-uuid
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
nextdns
0 upgraded, 1 newly installed, 0 to remove and 103 not upgraded.
Need to get 0 B/3,924 kB of archives.
After this operation, 9,560 kB of additional disk space will be used.
Selecting previously unselected package nextdns.
(Reading database ... 63459 files and directories currently installed.)
Preparing to unpack .../nextdns_1.47.1_amd64.deb ...
Unpacking nextdns (1.47.1) ...
Setting up nextdns (1.47.1) ...
NextDNS installed and started using systemd init
DEBUG: Start configure
DEBUG: Get profile ID
DEBUG: Previous profile ID: 6445b3
NextDNS Profile ID (default=6445b3):
DEBUG: Add arg -profile=6445b3
Sending your devices name lets you filter analytics and logs by device.
Report device name? [Y|n]: y
DEBUG: Add arg -report-client-info=true
Accept DNS request from other network hosts.
Setup as a router? [Y|n]: y
DEBUG: Add arg -setup-router=true
Make NextDNS CLI cache responses. This improves latency and reduces the amount
of queries sent to NextDNS.
Enable caching? [Y|n]: y
DEBUG: Add arg -cache-size=10MB
Instant refresh will force low TTL on responses sent to clients so they rely
on CLI DNS cache. This will allow changes on your NextDNS config to be applied
on your LAN hosts without having to wait for their cache to expire.
Enable instant refresh? [Y|n]: y
DEBUG: Add arg -max-ttl=5s
Changes DNS settings of the host automatically when NextDNS is started.
If you say no here, you will have to manually configure DNS to 127.0.0.1.
Automatically setup local host DNS? [Y|n]: y
DEBUG: Add arg -auto-activate=true
NextDNS installed and started using systemd init
Congratulations! NextDNS is now installed.
To upgrade/uninstall, run this command again and select the appropriate option.
You can use the NextDNS command to control the daemon.
Here are a few important commands to know:
# Start, stop, restart the daemon:
nextdns start
nextdns stop
nextdns restart
# Configure the local host to point to NextDNS or not:
nextdns activate
nextdns deactivate
# Explore daemon logs:
nextdns log
# For more commands, use:
nextdns help
0 comments:
Post a Comment