Skip to main content

DNS Configuration for SCAN IP

  DNS Configuration for SCAN IP

Set the Domainname:

            # domainname rac1.com

            # domainname >/etc/defaultdomain

Write the zone information in /etc/named.conf

            # vi /etc/named.conf
options {
        directory "/var/named";
        };
        zone "rac1.com"{
        type master;
        file "rac1domain.for";
                        };
        zone "1.168.192.in-addr.arpa"{
        type master;
        file "rac1domain.rev";
        };

Copy the file to /var/named/chroot/etc

# cp /etc/named.conf  /var/named/chroot/etc

Configure forward and reverse lookup files

#cd /var/named

# vi rac1domain.for
@ IN SOA rhel51.rac1.com root.rac1.com(
2010110101
36400
86000
108000
36000)
@               IN NS rhel51.rac1.com
rhel51          IN A 192.168.1.121
rhel51-vip      IN A 192.168.1.122
rhel52          IN A 192.168.1.124
rhel52-vip      IN A 192.168.1.125
cluster1-scan   IN A 192.168.1.127
cluster1-scan   IN A 192.168.1.128
cluster1-scan   IN A 192.168.1.129


# vi rac1domain.rev
@ IN SOA rhel51.rac1.com. root.rac1.com. (
2010110101;
36400;
86000;
108000;
36000);
@   IN NS rhel51.rac1.com.
121 IN PTR rhel51.rac1.com.
122 IN PTR rhel51-vip.rac1.com.
124 IN PTR rhel52.rac1.com.
125 IN PTR rhel52-vip.rac1.com.
127 IN PTR cluster1-scan.rac1.com.
128 IN PTR cluster1-scan.rac1.com.
129 IN PTR cluster1-scan.rac1.com.


Copy these Two file to /var/named/chroot/var/named

#cp /var/named/rac1domain. * /var/named/chroot/var/named

Start the Named Service (Note if it showing error, change the hostname of second node and reboot it)

#services named restart


Make the named service to autostart whenever server boots next time,

#chkconfig named on

- How to change hostname

Change hostname in below file and reboot the server
/etc/sysconfig/network
/etc/hosts



- Add below lines on both the nodes
[root@rhel51 named]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.1.121
domain  rac1.com
[root@rhel51 named]#

Chage the below entry in /etc/nsswitch.conf
hosts: dns files     -- hosts: files dns

Verify the setup:

nslookup rhel51
nslookup rhel52
nslookup rhel52-vip
nslookup rhel51-vip
nslookup 192.168.1.121
nslookup 192.168.1.124
nslookup cluster1-scan
nslookup cluster1-scan

nslookup cluster1-scan



Comments

Popular posts from this blog

Hard dependency with ip address Oracle RAC Cluster.

Command error out due to hard dependency with ip address [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource RDBMS_DB -n Node2 CRS-2527: Unable to start 'RDBMS_DB' because it has a 'hard' dependency on 'sDB' CRS-2525: All instances of the resource 'sDB' are already running; relocate is not allowed because the force option was not specified CRS-4000: Command Relocate failed, or completed with errors. [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource sDB  -n Node2 CRS-2529: Unable to act on 'DB' because that would require stopping or relocating 'LISTENER_DB', but the force option was not specified CRS-4000: Command Relocate failed, or completed with errors. [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource LISTENER_DB  -n Node2 CRS-2527: Unable to start 'LISTENER_DB' because it has a 'hard' dependency on 'sD...

19C NID ( Rename Database)

 [oracle@localhost ~]$ nid DBNEWID: Release 19.0.0.0.0 - Production on Thu Dec 23 00:05:36 2021 Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved. Keyword     Description                    (Default) ---------------------------------------------------- TARGET      Username/Password              (NONE) DBNAME      New database name              (NONE) LOGFILE     Output Log                     (NONE) REVERT      Revert failed change           NO SETNAME     Set a new database name only   NO APPEND      Append to output log           NO HELP        Displays these messages    ...

ORA-01017/ORA-28000 with AUDIT_TRAIL

With default profile in Oracle 11g, accounts are automatically locked 1 day ( PASSWORD_LOCK_TIME ) after 10 failed login attempt ( FAILED_LOGIN_ATTEMPTS ): SQL > SET lines 200 SQL > SET pages 200 SQL > SELECT * FROM dba_profiles WHERE PROFILE = 'DEFAULT' ORDER BY resource_name; PROFILE                         RESOURCE_NAME                      RESOURCE LIMIT ------------------------------ -------------------------------- -------- ---------------------------------------- DEFAULT                         COMPOSITE_LIMIT                 ...