Install and Configure Primary (Master) BIND DNS Server – RHEL 6 – CentOS 6

Updated on August 12, 2017
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Primary (Master) BIND DNS Server – RHEL 6 – CentOS 6 BIND DNS Server is a widely used DNS Server. Because domain names are alphabetic, they are easier to remember. So if we will browse the Internet we don’t need to remember IP addresses. For example, the domain name www.yourdomain.com might translate to 192.168.0.1.

This video tutorial will show you how to setup and configure Primary (Master) BIND DNS Server on RHEL 6.x  or CentOS 6.x:

  • Install BIND
  • Configure BIND
  • Create primary DNS zone for linuxlab.local domain
  • Add NS, A, MX records to zone

How to Install and Configure Primary (Master) BIND DNS Server on RHEL 6 and CentOS 6

Steps:
1. Install BIND
yum install bind

Related Article  Managing SWAP Partitions - RHEL 6.x - CentOS 6.x

2. Enable named service
chkconfig named on

3. Edit /etc/named.conf

4. Start named ( BIND) service
service named start

5.Edit /etc/named.conf

6. Copy /var/named/named.localhost
cp named.localhost linuxlab.local

7. Edit /var/named/linuxlab.local

$TTL 1D
@ IN SOA ns1.linuxlab.local. hostmaster.linuxlab.local. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum

IN NS ns1.linuxlab.local.
@ IN MX 10 mail.linuxlab.local.
ns1 IN A 192.168.0.20
webserver IN A 192.168.0.25
www IN CNAME webserver.linuxlab.local.
mail IN A 192.168.0.30

8. Modify file’s ownership
chown root:named linuxlab.local

9. service named reload

10. Run dns queries against this DNS server
dig @localhost ns1.linuxlab.local
dig @localhost webserver.linuxlab.local
dig @localhost linuxlab.local MX
dig @localhost linuxlab.local NS

Hope you found it informative and useful. Any questions or comments are welcomed.

Related Article  Installing VMware vCenter Server 5.1 Update 1 on Windows Server 2012

 

  • Sergoozz

    I do all like in video, step 10 is successful.
    But in WMvare enviroment my winXP can’t use dns service. I pointed out to winXP for address of server and it doesn’t work.Can help?
    (Sorry for my english)

  • Sergoozz

    Found, after any changes in linuxlab.local i must change ownership.

  • Soufiane Fadil

    Hi , i found the tutorial very helpful , i just wana ask pls , instead of ( linuxlab.local ) i should do what !?

    and pls what is the 192.168.0.20 , 192.168.0.25 , 192.168.0.30 ?

    Thank very much