How to Edit DNS Zone of a Domain as root?

Posted by Sakshita

Ways to Edit DNS Zone of a Domain as root

DNS is a part of the website that allows user to maintain a place on web space and be there with an identity. The first thing that set up after buying hosting services for the website is setting up nameservers and managing DNS records.
DNS records are the files stored in a server that contains all the information related to particular domain. These records created by default when a user used to update the name servers in the domain panel.
One can create new DNS records or edit the existing one. Considering this topic, today I'm writing an article that explains about the ways to edit DNS ZONe of a Domain.
You can also read about nameservers and DNS records in detail. I've written articles on managing DNS records and procedure to validate them as well. You can visit www.blog.redserverhost.com to get more articles related to DNS and nameservers.
Let us learn about the ways to Edit DNS Zone of a Domain as root. There are two ways to do the same. I will explain one by one.

#1. Edit DNS Zone of a Domain via WINSCP

The first method to edit DNS Zone of a domain is from WINSCP that is one of the open source file transfer software which allows user to manage files or directories at root level. Follow the procedure to edit DNS Zone of a domain via WINSCP.
  • A window will open that lists all files or directories.
  • Click over Find Files and enter the path /var/named.
  • Click over Start. List of files will appear. Select any domain of which you want to edit DNS records.
  • Right click over the file and then Edit.
  • You can now edit any DNS record from here.


#2. Edit DNS Zone of a Domain via SSH
Another way to Edit DNS Zone of a domain is via SSH, PuTTy. Let us know about the procedure in detail to edit DNS Zone of a domain via SSH.
  • Login to SSH with root credentials.
  • Execute the command cd /var/named.
  • Use ls command to get the list of all files or directories.
  • Now, use vi command to edit the particular file.
*Here, I will choose to edit abc.com.db.
  • From here, you can edit any of DNS records.
That's it !!
Hope the article help you to edit DNS record of any domain as root. Do share your suggestions if the article best explains the procedure. We will share more such articles till then ,
Happy Reading !

SSH commands                                     SSH                         Web Hosting Services         Cheap Web Hosting Services                   Reseller Hosting                         Cheap Reseller Hosting               VPS Hosting 

Comments