Editing DNS records over SSH on cPanel
On a system running cPanel you can edit a domain's DNS records over SSH like this:
-
Open the domain's zone file (replace
domain.comwith your own domain):nano /var/named/domain.com.db -
Edit the records, then press Ctrl + X to save and exit.
-
Restart the DNS service:
service named restart