Saturday, October 5, 2013

Steps to add Client to DNS Server ( RHEL 5)

Steps to Add client to the DNS server.
======================================

-- To setup the DNS Server Follow this Post

1) Update the client server details in the forward.zone file.

Here our clinet server is hostname is urac1rac2-scan.manzoor.com and the IP address for
this host is 192.168.0.27 / 192.168.0.28 and 192.168.0.29

-- Note in this eg. we are using three ip address for the same host beacuse we are
going to setup scan ip for the Oracle 11g grid.


2. Edit the forward zone file and add the client server hostname and ip address as below.

[root@standalone2 named]# vi forward.zone

$TTL    86400
@               IN SOA  standalone2.manzoor.com. root.standalone2.manzoor.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           standalone2.manzoor.com.
                IN NS           urac1rac2-scan.manzoor.com.
standalone2     IN A            192.168.0.30
urac1rac2-scan  IN A            192.168.0.27
urac1rac2-scan  IN A            192.168.0.28
urac1rac2-scan  IN A            192.168.0.29


-- Note
NS --  Denotes Named server
A  --  Denotes Address.

We have updated the NS and A for the client.

2) Update the clienter server details in the reverse.zone file.

[root@standalone2 named]# vi reverse.zone

$TTL    86400
@       IN      SOA     standalone2.manzoor.com. root.standalone2.manzoor.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS      standalone2.manzoor.com.
        IN      NS      urac1rac2-scan.manzoor.com.
30      IN      PTR     standalone2.manzoor.com.
27      IN      PTR     urac1rac2-scan.manzoor.com.
28      IN      PTR     urac1rac2-scan.manzoor.com.
29      IN      PTR     urac1rac2-scan.manzoor.com.

-- Note

PTR -- Here the PTR denotes the last pointer of the IP address.

4)  Now Test this

[root@standalone2 named]# nslookup urac1rac2-scan.manzoor.com
Server:         192.168.0.30
Address:        192.168.0.30#53

** server can't find urac1rac2-scan.manzoor.com: NXDOMAIN


[root@standalone2 named]# service named restart
Stopping named:                                            [  OK  ]
Starting named:    


-- We have assigned three ips for urac1rac2-scan.manzoor.com so it should listen is round robin fashion.


[root@standalone2 named]# nslookup urac1rac2-scan.manzoor.com
Server:         192.168.0.30
Address:        192.168.0.30#53

Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.27
Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.28
Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.29

[root@standalone2 named]# nslookup urac1rac2-scan.manzoor.com
Server:         192.168.0.30
Address:        192.168.0.30#53

Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.28
Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.29
Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.27

[root@standalone2 named]# nslookup urac1rac2-scan.manzoor.com
Server:         192.168.0.30
Address:        192.168.0.30#53

Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.29
Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.27
Name:   urac1rac2-scan.manzoor.com
Address: 192.168.0.28


Update the /etc/resovl.conf file in the client to update the DNS server address.

----- Client Configuration in DNS Server is Completed ------------------------------------



No comments:

Post a Comment