How to Edit DNS Zone via SSH?

You can edit the DNS Zone via SSH by editing .db file of the particular user. Let us see the procedure in detail.
  • Login to SSH as root.
  • Now execute the command-
cd /var/named
  • Execute ls command to get the list of all users.
  • To edit DNS Zone of any domain execute the following command:
vi username.db
  • All the DNS Records of particular user will appear on the prompt. 
  • Edit the one as per your choice then save and exit.
With the above given steps, you can easily edit the DNS Zone of a user via SSH. You can edit the DNS Zone from WinSCP as well. Check out the video tutorial and blog to get in detail procedure for the same.
  • How to Edit a DNS Zone of any domain via SSH or WinSCP/Filezilla, Edit a DNS Zone of any domain via WinSCP/Filezilla, Edit a DNS Zone of any domain via SSH(PuTTy)
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH. #1. Block An IP Address from SSH First of all,...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...