named with the /go/named Command

/go/named manages BIND, the DNS server that GoAdmio uses when this server is the nameserver for your domains. It has two modes: If you are not root, the command runs itself again through sudo. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Restart BIND
/go/named restart

Examples

# Restart BIND
/go/named restart

# Back up the zone data first, then reinstall BIND and rebuild all zones
cp /var/lib/sqlite/zone.db /root/zone.db.bak
/go/named

# Check BIND afterwards (use "named" instead of "bind9" on AlmaLinux, Rocky, CentOS, Red Hat, and Fedora)
systemctl status bind9
dig @127.0.0.1 example.com

Output

Message Meaning
Please Setup a Nameserver. restart was used, but the file /etc/nameservers does not exist. Nothing was restarted.
Package manager output The reinstall prints the normal output of dnf or apt-get.

Exit codes

Situation Exit code
restart, whether it worked or not Always 1
Reinstall The status of the last step

Do not rely on the exit code of restart. Every call is also appended to /var/log/go/named.log.

See the full reference at /go/named 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.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *