# Public
192.9.201.183 rac1.shilpa.com rac1
192.9.201.187 rac2.shilpa.com rac2
#Private
192.9.201.173 rac1-priv.shilpa.com rac1-priv
192.9.201.187 rac2-priv.shilpa.com rac2-priv
#Virtual
192.9.201.173 rac1-vip.shilpa.com rac1-vip
192.9.201.177 rac2-vip.shilpa.com rac2-vip
#Scan
192.9.201.163 rac-scan.shilpa.com rac-scan
192.9.201.167 rac-scan.shilpa.com rac-scan
192.9.201.169 rac-scan.shilpa.com rac-scan
Netmask:255.255.255.0
Default gateway IP : 192.9.201.2
Primary DNS Server : 192.9.201.59
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@server1 Desktop]# cat /var/named/forward.zone
$TTL 1D
@ IN SOA server1.shilpa.com. root.server1.shilpa.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS server1.shilpa.com.
server1 A 192.9.201.59
rac1 A 192.9.201.183
rac2 A 192.9.201.187
rac3 A 192.9.201.189
host01 A 192.9.201.23
host02 A 192.9.201.27
rac1-priv A 10.0.0.1
rac2-priv A 10.0.0.2
rac3-priv A 10.0.0.3
cluster01-gns A 192.9.201.180
AAAA ::1
$ORIGIN cluster01.shilpa.com.
@ IN NS cluster01-gns.shilpa.com.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@server1 Desktop]# cat /var/named/reverse.zone
$TTL 1D
@ IN SOA server1.shilpa.com. root.server1.shilpa.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS server1.shilpa.com.
A 192.9.201.59
AAAA ::1
59 PTR server1.shilpa.com.
183 PTR rac1.shilpa.com.
187 PTR rac2.shilpa.com.
189 PTR rac3.shilpa.com.
23 PTR host01.shilpa.com.
27 PTR host02.shilpa.com.
180 PTR cluster01-gns.shilpa.com.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@server1 Desktop]# cat /var/named/reverse1.zone
$TTL 1D
@ IN SOA server1.shilpa.com. root.server1.shilpa.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS server1.shilpa.com.
A 192.9.201.59
AAAA ::1
1 PTR rac1-priv.shilpa.com.
2 PTR rac2-priv.shilpa.com.
3 PTR rac3-priv.shilpa.com.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@server1 Desktop]# cat /var/named/chroot/etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind 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.
//
options {
listen-on port 53 { 192.9.201.59; };
# 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";
allow-query { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation no;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@server1 Desktop]# cat /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
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "shilpa.com" IN {
type master;
file "forward.zone";
allow-transfer { 192.9.201.59; };
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone "1.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.loopback";
allow-update { none; };
};
zone "201.9.192.in-addr.arpa" IN {
type master;
file "reverse.zone";
};
zone "0.0.10.in-addr.arpa" IN {
type master;
file "reverse1.zone";
};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@server1 Desktop]# cat /etc/dhcp/dhcpd.conf
# dhcpd.conf
#
# Subnet Declaration
subnet 192.9.201.0 netmask 255.255.255.0 {
option routers 192.9.201.1;
option subnet-mask 255.255.255.0;
option domain-search "shilpa.com";
option domain-name-servers 192.9.201.59;
option time-offset -18000; # Eastern Standard Time
# range 192.9.201.190 192.9.201.254;
}
# Use this to enble / disable dynamic dns updates globally.
ddns-update-style interim;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local6;
# Range Parameter
default-lease-time 1600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option routers 192.9.201.1;
option domain-name-servers 192.9.201.59;
option domain-search "shilpa.com";
subnet 192.9.201.0 netmask 255.255.255.0 {
range 192.9.201.190 192.9.201.254;
}
# Static IP Address Using DHCP
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No comments:
Post a Comment