Showing posts with label DNS. Show all posts
Showing posts with label DNS. Show all posts

Monday, 10 October 2016

DNS server configuration using BIND

DNS stands for Domains Name System.

Below are the steps to configure a basic dns server


Few records used here are.
Mail Exchange record (MX record) - Used for exchanging mails.
A record - used to translate from a domain name to an IP address.
NS record -  lists which name servers can answer lookups on a DNS zone.
PTR record - Pointer record.

Step 1: Download & Install bind using following command.
# yum install bind bind* caching-nameserver
Step 2: Disable selinux&iptables.
#
Step 3: change your hostname to a fully qualified domain name.
Step 4: edit the hosts file as shown below,








Step 5: change the dns value as your required IP & Reboot the computer once.
Step 6:create a new file named.conf as below
# vi /etc/named.conf
Step 7:Create zones in /var/named as shown below,
# vi /var/named/zimoncloud.com.db
For forward lookup zone,

#vi /var/named/1.168.192.db
For reverse lookup zone

Step 8: Start the named service using following command.

# service named start

Step 9:To check whether dns is configured properly, issue the following command,