What does the script do?
DNS Manager for Linux automatically configures ADnull DNS on your computer. The script detects your system and installed browsers, shows an interactive menu in Terminal, and applies settings in 4 steps — no manual editing of configuration files required.
The script configures:
-
System DNS — for all apps
Registers ADnull DNS servers in systemd-resolved and NetworkManager, as well as netplan (Ubuntu). Before making any changes, the script saves backup copies of original files — so settings can be restored if needed.
-
DNS-over-HTTPS (DoH) — for Chrome, Chromium, Firefox, Edge, Opera, Brave, Vivaldi
Configures secure DoH in each browser using official group policy mechanisms. The browser encrypts DNS requests and sends them directly to ADnull, bypassing the internet provider.
When finished, the script flushes the system DNS cache.
Requirements
-
Ubuntu 18.04+, Debian 10+, Fedora 33+, or another systemd-based distribution
-
sudo privileges (administrator password)
Step 1. Download the script
Log in to your ADnull dashboard → Settings → click "DNS Manager for Linux".
The file adnull-linux-XXXXX.sh will be saved to your Downloads folder.
Step 2. Open Terminal
Press Ctrl+Alt+T or find Terminal in your distribution's application menu.
Step 3. Run the script
The prompt dialog after download contains a ready-to-use command — copy it, paste it into Terminal (Ctrl+Shift+V), and press Enter:
bash ~/Downloads/adnull-linux-XXXXX.sh
Step 4. Enter your administrator password
Terminal will ask for your sudo password. Type it and press Enter. Characters won't appear while you type — this is normal.
Step 5. Browser restart warning
An interactive ADnull window will appear in Terminal:
WARNING! All browsers will be restarted to apply the settings. Please save all data before continuing.

Press Tab to switch between buttons, Enter to confirm. Select "Continue".
Step 6. Choose where to enable DNS
A checklist will appear showing only the browsers installed on your computer.

Controls:
-
Space — check or uncheck an item
-
Arrow keys ↑↓ — move through the list
-
Tab — switch between Ok/Cancel buttons
-
Enter — confirm selection
Select the items you want and press Ok.
Step 7. The script applies settings
The script runs 4 steps automatically:
[1/4] Configuring system DNS (systemd-resolved)
[2/4] Configuring NetworkManager
[3/4] Configuring browsers
[4/4] Flushing DNS cache
Step 8. Done!
Terminal will show: "ADnull DNS configured successfully!"
Press Enter to exit and restart your browsers.
How to open the script and verify it is safe
cat ~/Downloads/adnull-linux-XXXXX.sh
Or open the file in any text editor. The script is written in plain text — you will see every command it runs.
FAQ
How do I disable ADnull DNS?
Run the script again and uncheck the items you want to remove. The script will restore the original settings from backup copies.
Do I need to run the script after every restart?
No. The settings are saved in system files and remain active after any restart.
Is my distribution supported?
The script supports Ubuntu 18.04+, Debian 10+, Fedora 33+, and other systemd-based distributions. If whiptail or dialog is not available on your system, the script will automatically switch to text mode and ask questions one by one in Terminal.
Is the script safe?
Yes. The script is generated individually for your account. Before making any changes, it saves backup copies of all files to
/var/lib/adnull-dns/backups/. It only changes DNS settings and collects no data.Do not share the script with anyone — it is tied to your personal DNS domain