Beruflich Dokumente
Kultur Dokumente
What is DNS?
1.Primary DNS Server : The first DNS server which contains master copy
1. Load Balancing: If the Primary DNS server got more load then some
load will shared (Balanced) by secondary DNS servers.
2. Fault Tolerance: If the Primary DNS server fails ,then converting from
hostname to IP Address will be done by Secondary DNS servers.
/etc/named.rfc1912.zones
Types of Zones:
for converting
Hostname to IP Address.
var/named/chroot/var/named/ localdomain.zone
var/named/chroot/var/named/ localhost.zone
hostname to IP Address
(Ex:sys1.linuxtechies.com = 210.211.230.77)
name .
(Ex: www.linuxtechies.com = sys1.linuxtechies.com)
eth0
[root@localhost ~]#
:wq
[root@localhost ~]#
Step2 : Configure hostname mylinuxpc1.linuxtechies.com
bind*
caching* -y
Dependencies Resolved
===========================================================================
Package
Arch
Version
Repository
Size
===========================================================================
Installing:
bind
i386
30:9.3.3-7.el5
core
954
k
bind-chroot
i386
30:9.3.3-7.el5
core
38
k
bind-devel
i386
30:9.3.3-7.el5
core
2.6
M
bind-libbind-devel
i386
30:9.3.3-7.el5
core
440
k
bind-libs
i386
30:9.3.3-7.el5
core
834
k
bind-sdb
i386
30:9.3.3-7.el5
core
223
k
bind-utils
i386
30:9.3.3-7.el5
core
162
k
caching-nameserver
i386
30:9.3.3-7.el5
core
55
k
Transaction Summary
===========================================================================
Install
8 Package(s)
Update
0 Package(s)
Remove
0 Package(s)
Total download size: 5.2 M
Downloading Packages:
(1/8): bind-chroot-9.3.3- 100% |=========================| 38 kB
(2/8): bind-sdb-9.3.3-7.e 100% |=========================| 223 kB
(3/8): bind-libbind-devel 100% |=========================| 440 kB
(4/8): bind-devel-9.3.3-7 100% |=========================| 2.6 MB
(5/8): bind-libs-9.3.3-7. 100% |=========================| 834 kB
(6/8): caching-nameserver 100% |=========================| 55 kB
(7/8): bind-utils-9.3.3-7 100% |=========================| 162 kB
(8/8): bind-9.3.3-7.el5.i 100% |=========================| 954 kB
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: bind-libs
#########################
Installing: bind
#########################
Installing: bind-utils
#########################
Installing: bind-chroot
#########################
Installing: bind-sdb
#########################
Installing: bind-libbind-devel
#########################
Installing: bind-devel
#########################
Installing: caching-nameserver
#########################
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
[1/8]
[2/8]
[3/8]
[4/8]
[5/8]
[6/8]
[7/8]
[8/8]
Installed: bind.i386 30:9.3.3-7.el5 bind-chroot.i386 30:9.3.3-7.el5 binddevel.i386 30:9.3.3-7.el5 bind-libbind-devel.i386 30:9.3.3-7.el5 bindlibs.i386 30:9.3.3-7.el5 bind-sdb.i386 30:9.3.3-7.el5 bind-utils.i386
30:9.3.3-7.el5 caching-nameserver.i386 30:9.3.3-7.el5
Complete!
[root@mylinuxpc1 /]#
/etc/named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
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; };
};
zone "linuxtechies.com" IN {
type master;
file "linuxtech.for";
allow-update { none; };
};
zone "5.168.192.in-addr.arpa" IN {
type master;
file "linuxtech.rev";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
Click on Save and Exit from gedit
named.zero
$TTL 86400
@
IN SOA mylinuxpc1.linuxtechies.com.
root.mylinuxpc1.linuxtechies.com. (
42
3H
15M
1W
1D )
@
mylinuxpc1
www
IN NS
IN A
IN A
; retry
; expiry
; minimum
mylinuxpc1.linuxtechies.com.
192.168.5.1
192.168.5.1
[root@mylinuxpc1 named]#
$TTL 86400
@
IN
SOA mylinuxpc1.linuxtechies.com.
root.mylinuxpc1.linuxtechies.com. (
1997022700 ; Serial
28800
; Refresh
14400
; Retry
3600000 ; Expire
86400 ) ; Minimum
@
IN
NS
mylinuxpc1.linuxtechies.com.
1
IN
PTR mylinuxpc1.linuxtechies.com.
:wq
A
A
NS
192.168.5.1
mylinuxpc1.linuxtechies.com.
;; ADDITIONAL SECTION:
mylinuxpc1.linuxtechies.com. 86400 IN A
192.168.5.1
--- www.linuxtechies.com ping statistics --5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.013/0.027/0.037/0.010 ms
[root@mylinuxpc1 named]#