The resolvers are the DNS servers the server itself uses to look up names. Mail delivery, certificate requests, package updates, and every curl call from a script depend on them. /go/resolver changes them in one step. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Use Google's resolvers (the default)
/go/resolver
# Use Cloudflare's resolvers
/go/resolver cloudflare
# Use your own two resolvers
/go/resolver 192.168.1.1 192.168.1.2
Options
There are no --option flags. The built-in providers are:
| Provider | Primary | Secondary | Tertiary (IPv6) |
|---|---|---|---|
| Google (default) | 8.8.8.8 |
8.8.4.4 |
2001:4860:4860::8888 |
| OpenDNS | 208.67.222.222 |
208.67.220.220 |
2620:119:35::35 |
| Quad9 | 9.9.9.9 |
149.112.112.112 |
2620:fe::fe |
| Cloudflare | 1.1.1.1 |
1.0.0.1 |
2606:4700:4700::1111 |
For your own addresses, pass the primary, secondary, and an optional tertiary one. The secondary is required, because a single address triggers the lookup mode.
Examples
# Default: Google
/go/resolver
# Quad9
/go/resolver quad9
# Custom IPv4 resolvers
/go/resolver 192.168.1.1 192.168.1.2
# Look up who owns an IP address (nothing is changed)
/go/resolver 8.8.8.8
# Check the result
cat /etc/resolv.conf
nmcli device show | grep DNS
getent hosts example.com
Output
| Outcome | What you get |
|---|---|
| Resolvers set | Your resolvers have been successfully configured. |
| Check failed | Your resolvers failed to configure. |
| Lookup mode | ` |
Notes on the output:
- If NetworkManager had to be installed, the
dnforaptoutput comes first. - The result line only tests that the primary address appears in
/etc/resolv.conf. It does not prove that names resolve, that the second and third addresses were saved, or that NetworkManager holds the new settings. - The exit status is
0even afterYour resolvers failed to configure.. Lookup mode exits with status1, even though it works. - Every run is logged with a timestamp and its arguments to
/var/log/go/resolver.log.
See the full reference at /go/resolver and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
