My DNS for a RAC

zone "example.com" IN {
	type master;
	file "example.zone";
};

zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "reverse-1.rev";
};

zone "56.168.192.in-addr.arpa" IN {
        type master;
        file "reverse-56.rev";
};

[root@test ~]# cat /var/named/example.zone 
$TTL 1D
@	IN SOA	@ example.com. (
					100	; serial
					1D	; refresh
					1H	; retry
					1W	; expire
					3H )	; minimum
	NS	test
	A	192.168.56.254
	AAAA	::1

test		IN A 192.168.56.254
rac1-pub	IN A 192.168.56.101
rac2-pub	IN A 192.168.56.102
rac1-priv	IN A 192.168.1.101
rac2-priv	IN A 192.168.1.102
rac1-vip	IN A 192.168.56.201
rac2-vip	IN A 192.168.56.202
rac-scan	IN A 192.168.56.10
rac-scan	IN A 192.168.56.20
rac-scan	IN A 192.168.56.30

[root@test ~]# cat /var/named/reverse-1.rev 
$TTL 3D
1.168.192.in-addr.arpa. IN SOA test.example.com. example.com. ( 
	1 ;Serial number 
	10800 ;Refresh 
	3600 ;Retry 
	604800 ;Expire 
	86400) ;Minimum TTL

	NS example.com.
101 	IN PTR rac1-priv.example.com.
102 	IN PTR rac2-priv.example.com.

[root@test ~]# cat /var/named/reverse-56.rev 
$TTL 3D
56.168.192.in-addr.arpa. IN SOA test.example.com. example.com. ( 
	1 ;Serial number 
	10800 ;Refresh 
	3600 ;Retry 
	604800 ;Expire 
	86400) ;Minimum TTL

	NS example.com.
10 IN PTR rac-scan.example.com.
20 IN PTR rac-scan.example.com.
30 IN PTR rac-scan.example.com.
101 IN PTR rac1-pub.example.com.
102 IN PTR rac2-pub.example.com.
201 IN PTR rac1-vip.example.com.
202 IN PTR rac2-vip.example.com.
254 IN PTR test.example.com.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s