IBM Support

How do I update DNS configuration files using the new database + updated ?

Troubleshooting


Problem

How do I update DNS configuration files using the new database + updated ?

Resolving The Problem

How do I update DNS configuration files using the new database + updated ?

PART 1 : update named.py :

1.1 backup the old named.py :

cp -p /opt/rocks/lib/python/rocks/reports/named.py /opt/rocks/lib/python/rocks/reports/named.py_with_revdns_bug

1.2 copy the new script at the right location : cp -p named.py

/opt/rocks/lib/python/rocks/reports/named.py

PART 2 : check the database change :

2.1 named.conf

dbreport -d cluster_new -u root -p "root_password" named >named.conf.new

dbreport named > named.conf.old

2.2 reverse dns :

dbreport -d cluster_new -u root -p "root_passwd" dns reverse >reverse.rocks.domain.new

dbreport dns reverse >reverse.rocks.domain.old

2.3 zone : dbreport -d cluster_new -u root -p "root_passwd" dns zone >rocks.domain.new

dbreport dns zone >rocks.domain.old

A diff should reflect the changes :

-------------------------------------------------------------------

[root@dr10 config]# diff rocks.domain.old rocks.domain.new

7c7

< 1164653218 ; Serial

---

> 1164653472 ; Serial

20c20

< dr10 A 10.1.1.1

---

> dr10 A 10.255.255.1

[root@dr10 config]# diff reverse.rocks.domain.old reverse.rocks.domain.new

7c7

< 1164653434 ; Serial

---

> 1164653507 ; Serial

16c16

< 1.1.1 PTR dr10.local.

--- > 1.255.255 PTR dr10.local.

-------------------------------------------------------------------

PART 3 : backup :

cp -p /etc/named.conf /etc/named.conf.orig

cp -p /var/named/reverse.rocks.domain/var/named/reverse.rocks.domain.orig

cp -p /var/named/rocks.domain /var/named/rocks.domain.orig

PART 4 : configuration files update :

dbreport named >/etc/named.conf

dbreport dns reverse > /var/named/reverse.rocks.domain

dbreport dns zone > /var/named/rocks.domain

PART 5 : service restart
service named restart

[{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.1.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 September 2018

UID

isg3T1014385