dig, nslookup to determine scan name is mapped to the correct IP addresses


With 11gR2 Grid Infrastructure  we need 3 SCAN IPs on the same subnet with the Virtual IPs  resolving the same name with DNS round-robin resolution.  The SCAN name and IP addresses are not listed in the /etc/hosts file and not ping-able unit the Grid Infrastructural is configured.

How to determine that our SCAN name is mapped to the right IP addresses?  2 methods

Method 1:

srvctl config scan

SCAN name: lapqa-scan, Network: 1/10.112.14.0/255.255.255.0/bond0
SCAN VIP name: scan1, IP: /lapqa-scan/10.112.14.101
SCAN VIP name: scan2, IP: /lapqa-scan/10.112.14.102
SCAN VIP name: scan3, IP: /lapqa-scan/10.112.14.103

nslookup lapqa-scan
Server:         10.210.121.15
Address:        10.210.121.15#53

Name:   lapqa-scan.ctt.com
Address: 10.112.14.103
Name:   lapqa-scan.ctt.com
Address: 10.112.14.101
Name:   lapqa-scan.ctt.com
Address: 10.112.14.102


Method 2:

crsctl query dns –servers

CRS-10018: the following configuration was found on the system:
CRS-10019: There are 1 domains in search order. They are:
ctt.com
CRS-10022: There are 2 name servers. They are:
10.210.121.15
10.101.11.109
CRS-10020: number of retry attempts for name lookup is: 4
CRS-10021: timeout for each name lookup is: 5

Alternatively,

cat /etc/resolv.conf
domain ctt.com
nameserver 10.210.121.15
nameserver 10.101.11.109

nslookup 10.210.121.15
Server:         10.210.121.15
Address:        10.210.121.15#53

79.129.250.10.in-addr.arpa      name = xy1.cttxyx.local.


+ASM1 - oracle: dig @xy1.cttxyx.local lapqa-scan.ctt.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> @xy1.cttxyx.local lapqa-scan.ctt.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50505
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;lapqa-scan.ctt.com.           IN      A

;; ANSWER SECTION:
lapqa-scan.ctt.com.    30      IN      A       10.112.14.102
lapqa-scan.ctt.com.    3600    IN      A       10.112.14.103
lapqa-scan.ctt.com.    30      IN      A       10.112.14.101

;; AUTHORITY SECTION:
ctt.com.                3600    IN      NS      xy1.cttxyx.local.
ctt.com.                3600    IN      NS      xy2.cttxyx.local.

;; ADDITIONAL SECTION:
xy1.cttxyx.local.      86400   IN      A       10.210.121.15
xy2.cttxyx.local.      86400   IN      A       10.101.11.109

;; Query time: 20 msec
;; SERVER: 10.210.121.15#53(10.210.121.15)
;; WHEN: Tue Mar  5 11:46:24 2013
;; MSG SIZE  rcvd: 166

No comments:

Post a Comment