Domain Name Server (DNS) Configuration and Administration
Domain Name Server (DNS) Configuration and Administration
Domain Name Server (DNS) Configuration and Administration
and Administration
Domain Name System
The Domain Name System (DNS) is the crucial glue that keeps computer networks in harmony
by converting human-friendly hostnames to the numerical IP addresses computers require to
communicate with each other. DNS is one of the largest and most important distributed databases
the world depends on by serving billions of DNS requests daily for public IP addresses. Most
public DNS servers today are run by larger ISPs and commercial companies but private DNS
servers can also be useful for private home networks. This article will explo
To Check IP
[root@www Desktop]# ifconfig
eth0
Link encap:Ethernet HWaddr 00:0C:29:84:6D:8C
inet addr:10.90.12.1 Bcast:10.90.12.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe84:6d8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6624 errors:0 dropped:0 overruns:0 frame:0
TX packets:1474 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:442710 (432.3 KiB) TX bytes:1901220 (1.8 MiB)
Interrupt:19 Base address:0x2000
eth1
lo
save :wq
[root@station Desktop]# hostname station.example.com
[root@station Desktop]# hostname
station.example.com
To Install Package
[root@station Desktop]# yum install bind*
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository 'yum' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Setting up Install Process
Package 32:bind-utils-9.7.3-8.P3.el6.i686 already installed and latest version
Package 32:bind-libs-9.7.3-8.P3.el6.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package bind.i686 32:9.7.3-8.P3.el6 will be installed
---> Package bind-chroot.i686 32:9.7.3-8.P3.el6 will be installed
---> Package bind-dyndb-ldap.i686 0:0.2.0-7.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================
===========
Package
Arch
Version
Repository Size
=====================================================================
===========
Installing:
bind
i686
32:9.7.3-8.P3.el6
yum
3.9 M
bind-chroot
i686
32:9.7.3-8.P3.el6
yum
67 k
bind-dyndb-ldap
i686
0.2.0-7.el6
yum
49 k
Transaction Summary
=====================================================================
===========
Install
3 Package(s)
To Change directory
cd /var/named/chroot/etc/
type master;
file "for.zone";
};
zone "12.90.10.in-addr.arpa" IN {
type master;
file "rev.zone";
};
save :wq
To change directory
[root@station etc]# cd /var/named/chroot/var/named/
@
1
save :wq
;; AUTHORITY SECTION:
.
10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2012060501 1800 900
604800 86400
;; Query time: 193 msec
;; SERVER: 113.193.1.14#53(113.193.1.14)
;; WHEN: Fri Jun 1 19:17:27 2012
;; MSG SIZE rcvd: 103
[root@station named]# dig station.example.com
; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> station.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24133
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;station.example.com.
IN A
;; ANSWER SECTION:
station.example.com. 86400
IN A 10.90.12.1
;; AUTHORITY SECTION:
example.com.
86400 IN
NS
station.example.com.
[admin@station1]$vim /etc/resolve.conf
search station.example.com
nameserver 10.90.12.1
Save :wq
[admin@station1]$ dig station.example.com
; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> station.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24133
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;station.example.com.
IN A
;; ANSWER SECTION:
station.example.com. 86400
IN A 10.90.12.1
;; AUTHORITY SECTION:
example.com.
86400 IN
NS
station.example.com.