DNS Server
The Domain Name Server plays an important role in making Internet traffic possible. A DNS server is part of a global network of servers that translate host names, like www.facebook.com, into numerical IP (Internet Protocol) addresses, like 208.20.202.20, which computers on the Net use to communicate with each other. This allows us to use easy to memorize or intuitive URLs and e-mail addresses instead of a long string of numbers.
The advantage of having your own DNS server is it can process requests for traffic on your internal network without having to rely on another DNS server outside of your network. All the traffic is localized on your secure and internal network. Basically, this is a security feature because your LAN is essentially "hidden" from the outside world.
Real Time's DNS Servers run on Linux, giving them the stability and reliability everyone needs. It's also very cost effective because, like other Linux servers, a Linux DNS server can run on less expensive hardware than other operating systems.
As part of the installation, Real Time will also configure the server to your needs and specifications while keeping security as a top priority. Since it is built and designed in house, the server can be completely customized.
-->
How to configure the
DNS Server in RHEL5.5
[root@node1 ~]# yum
install bind* caching-nameserver
[root@node1 ~]#
/etc/init.d/named restart;chkconfig named on
[root@node1 ~]# cd
/var/named/chroot/etc/
[root@node1 ~]# cp
-p named.caching-nameserver.conf named.conf
[root@node1 ~]# vim
named.rfc1912.zones
Copy two zone in this file;
zone "localhost"
IN {
type master;
file
"localhost.zone";
allow-update {
none; };
};
zone
"0.0.127.in-addr.arpa" IN {
type master;
file
"named.local";
allow-update {
none; };
};
[root@node1 ~]# vim
named.conf
Change few things in
this file:
//
named.caching-nameserver.conf
//
// Provided by Red Hat
caching-nameserver package to configure the
// ISC BIND named(8) DNS
server as a caching only nameserver
// (as a localhost DNS
resolver only).
//
// See
/usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE -
use system-config-bind or an editor
// to create named.conf -
edits to this file will be lost on
// caching-nameserver
package upgrade.
//
options {
listen-on port 53
{ 127.0.0.1; 10.64.10.1; };
listen-on-v6 port
53 { ::1; };
directory
"/var/named";
dump-file
"/var/named/data/cache_dump.db";
statistics-file
"/var/named/data/named_stats.txt";
memstatistics-file
"/var/named/data/named_mem_stats.txt";
// Those options
should be used carefully because they disable port
// randomization
// query-source
port 53;
// query-source-v6
port 53;
allow-query {
10.64.10.1; };
};
##############################################
zone "node1.example.com"
IN {
type master;
file
"node1.fow.zone";
allow-update {
none; };
};
zone
"10.64.10.in-addr.arpa" IN {
type master;
##############################################
[root@node1 ~]# cd
/var/named/chroot/var/named
[root@node1 ~]# cp -p
localhost.zone node1.fow.zone
[root@node1 ~]# cp -p
named.zero node1.rev.zone
[root@node1 ~]# vim
node1.fow.zone
Before change in this
file:
$TTL 86400
@ IN SOA @ root (
42 ; serial (d.
adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
After change in this
file:#####################################
$TTL 86400
@ IN SOA @ root (
42 ; serial (d.
adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
NS
node1.example.com
A
10.64.10.1
[root@node1 ~]# vim
node1.rev.zone
Befor chane in this file.
$TTL 86400
@ IN SOA
localhost. root.localhost. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost.
###################################################
After chage in this file:
$TTL 86400
@ IN SOA
node1.example.com root.node1.example.com (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1 IN NS node1.example.com
[root@node1 ~]# vim
/etc/resolve.conf
nameserver 10.64.10.1
root@node1 ~]#
/etc/init.d/named restart
Stopping named: .
[ OK ]
Starting named:
[ OK ]
How to check DNS Server is working
[root@node1 ~]# nslookup
10.64.10.1
Server: 10.64.10.1
Address: 10.64.10.1#53
1.10.64.10.in-addr.arpa name
= node1.example.com.10.64.10.in-addr.arpa.
[root@node1 ~]# nslookup
node1.example.com
Server: 10.64.10.1
Address: 10.64.10.1#53
Name: node1.example.com
Address: 10.64.10.1
Name: node1.example.com
Address: 127.0.0.1
Thanks & Regards
Manish Bhandari