ScienceTech News

learn how to configure and Test DNS server in linux

Today, we will learn to configure DNS in Linux along with CNAME, PTR, and A record:

Before starting to configure the DNS server make sure you are on the root by:
su – root

# first check whether DNS is installed or not by:
yum -y list bind

#my bind is already installed, otherwise, we can install by:
yum -y install bind

# now bind is installed, now we must open the. zones by and it will open the windows
less /etc/named.rfc1912.zones

Read Also: Naa Songs

# copy the selected part and edit the named.conf by:
nano /etc/named.conf

# at the end of the file paste that selected part and changes the zone name into the file name as

And change the options part, delete the localhost and keep ‘any’ so that it allows from anywhere, not from only the localhost (Ellingwood, 2014).

# now save the file CTRL + alt and CTRL+X
# now change the directory to /var/named by:
cd /var/named

# to check the files inside it just does:
ls -l

# to copy localhost to, simply do:
cp named. localhost

# to modify the, simply do:

# To configure the A and PTR record inside the, we simply do

# Inside the, ns1 used in the second line gives the authoritative permission (ns1, 2013). And as shown in the fig NS gives the name server and IN gives the input and my Linux IP address as

# now add the input and record for java, wiki and win

That’s it, you are done!

Thanks for visiting see you again!

Read More: Naa Songs

Related Articles

Leave a Reply

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

Back to top button