dns ,dhcp for gns setup

 1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
      
      
cat /etc/named.conf
options {
// FORWARDERS: Forward any name this DNS can't resolve to my router.
forwarders { 192.168.1.1; };
// DIRECTORY: Directory where named will look for zone files.
directory "/etc/named/data";
};
# ----------------------------------
# Forward Zone
# ----------------------------------
zone "tang.com" IN {
type master;
file "tang.com.zone";
allow-update { none; };
};
# ----------------------------------
# Reverse Zone
# ----------------------------------
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.in-addr.arpa.zone";
allow-update { none; };
};


 
    
 1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
      
      
cat /etc/named/data/tang.com.zone
; +-------------------------------------------------------------------+
; | /etc/named/data/tang.com.zone |
; | |
; | Forward zone definition file for tang.com |
; +-------------------------------------------------------------------+
$ORIGIN tang.com.
$TTL 86400 ; time-to-live - (1 day)
@ IN SOA dnstest.tang.com. fred.tang.com. (
201011021 ; serial number - (yyyymmdd+s)
7200 ; refresh - (2 hours)
300 ; retry - (5 minutes)
604800 ; expire - (1 week)
60 ; minimum - (1 minute)
)
IN NS dnstest.tang.com.
localhost IN A 127.0.0.1
; Oracle RAC Nodes
test1 IN A 192.168.1.11
test2 IN A 192.168.1.22
test3 IN A 192.168.1.33
dnstest IN A 192.168.1.88 ; this is the server it self
gns IN A 192.168.1.66 ; this is the gns server
; gns-sub.tang.com is the sub-domain in tang.com, used for gns setting for the grid control installation
$ORIGIN gns-sub.tang.com.
@ IN NS gns.tang.com.


  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
      
      
cat /etc/named/data/1.168.192.in-addr.arpa.zone
; +-------------------------------------------------------------------+
; | /etc/named/data/1.168.192.in-addr.arpa.zone |
; | |
; | Reverse zone definition file for tang.com |
; +-------------------------------------------------------------------+
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 86400 ; time-to-live - (1 day)
@ IN SOA dnstest.tang.com. jhunter.tang.com. (
201311021 ; serial number - (yyyymmdd+s)
7200 ; refresh - (2 hours)
300 ; retry - (5 minutes)
604800 ; expire - (1 week)
60 ; minimum - (1 minute)
)
IN NS dnstest.tang.com.
; Oracle RAC Nodes
11 IN PTR test1.tang.com.
22 IN PTR test2.tang.com.
33 IN PTR test3.tang.com
; Dns Server
88 IN PTR dnstest.tang.com.
66 IN PTR gns.tang.com


  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
      
      
cat /etc/dhcp/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1; # Default gateway to be used by DHCP clients
option subnet-mask 255.255.255.0; # Default subnet mask to be used by DHCP clients.
option ip-forwarding off; # Do not forward DHCP requests.
option broadcast-address 192.168.1.255; # Default broadcast address to be used by DHCP client.
option domain-name "dnstest.tang.com";
option domain-name-servers 192.168.1.88; # IP address of the DNS server. In this document it will be oralab1
option time-offset -19000; # Central Standard Time
option ntp-servers 0.pool.ntp.org; # Default NTP server to be used by DHCP clients
range 192.168.1.99 192.168.1.200; # Range of IP addresses that can be issued to DHCP client
default-lease-time 21600; # Amount of time in seconds that a client may keep the IP address
max-lease-time 43200;
}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值