0% found this document useful (0 votes)
27 views5 pages

DNS Server

This document summarizes DNS configuration on a Linux server. It describes installing and configuring BIND as the DNS server software. Configuration includes setting up forward and reverse lookup zones for a local network domain "zar.com" and IP range 192.168.1.0/24. The DNS server is configured to listen on port 53 and provide name resolution for hosts linux, client, and www within the local domain.

Uploaded by

zpaung10749
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views5 pages

DNS Server

This document summarizes DNS configuration on a Linux server. It describes installing and configuring BIND as the DNS server software. Configuration includes setting up forward and reverse lookup zones for a local network domain "zar.com" and IP range 192.168.1.0/24. The DNS server is configured to listen on port 53 and provide name resolution for hosts linux, client, and www within the local domain.

Uploaded by

zpaung10749
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

DNS Server

 BIND (Linux)
Name to IP (forward Zone) (Record A)
IP to Name (Revers Zone) (Record B PTR)
 NetBIOS (Only Same Network)
DNS hierarchy
.root

.net .com .org

DNS

192.168.0.1

Linux.zar.com

Computer Computer
192.168.0.2 Router (or) Switch
192.168.0.100
Client.zar.co www.zar.com
m

Configuration
Client
#vi /etc/sysconfig/network-scrips/ifcfg-etho
#cat /etc/named.conf
Namserver 192.168.0.1
Configuration Server
#yum install –y bind bind-utils
#vi /etc/named.conf
Forwarders {8.8.8.8; 8.8.4.4;}
Listen-on port 53 { any; }:
Listen-on-v6 port 53 { none; }:
Directory “/var/named”;
Allow-query { any: };
#rpm –qa | grep bind
#rpm –ql bin….. | less
#vi /etc/named.com
Sample for DNS
#cd /usr/share/doc/bind-9.8.2/sample/etc/
#ls
#vi name.conf
#vi /etc/named.rfc1912.zones
Zone “zar.com” IN {
Type master;
File “zar.com.db”;
Allow-update {none; };
Zone “0.168.192.in-addr.arpa” IN {
Type master;
File “0.168.192.db”;
Allow-update { none; };
#cd /var/named/
#ls
#touch zar.com.db
#touch 0.168.182.db
#vi zar.com.db
zar.com.db configuration
$TTL 1D
@ IN SOA linux.zar.com root.zar.com.(
100 ;Serial
1D ;Refresh
1H ;Retry
1W ;Expire
3H ;Minimum
)
IN NS linux.zar.com
IN A 192.168.1.1
Linux IN A 192.168.1.1
Client IN A 192.168.1.2
www IN A 192.168.1.3
0.168.182.db configuration
$TTL 1D
@ IN SOA linux.zar.com root.zar.com.(
100 ;Serial
1D ;Refresh
1H ;Retry
1W ;Expire
3H ;Minimum TTL
)
IN NS linux.zar.com
IN PTR zar.com
IN A 255.255.255.0
1 IN PTR linux.zar.com.
2 IN PTR client.zar.com
3 IN PTR www.zar.com
#service named start
#systemctl start named
#chkconfig named on

You might also like