Hide Forgot
When named is restarted, the dynamic database file is rewritten by named without the "IN" tokens. This means the database is only "properly" formatted once, right after openshift.sh runs.
OpenShift Enterprise 2.0.z puddle: [2.0.z/2014-01-14.1] 1. Finsh installation and check /var/named/dynamic/ose-nwei20140115.com.cn.db [root@broker ~]# cat /var/named/dynamic/ose-nwei20140115.com.cn.db $ORIGIN . $TTL 1 ; 1 seconds (for testing only) ose-nwei20140115.com.cn IN SOA ns1.ose-nwei20140115.com.cn. hostmaster.ose-nwei20140115.com.cn. ( 2011112904 ; serial 60 ; refresh (1 minute) 15 ; retry (15 seconds) 1800 ; expire (30 minutes) 10 ; minimum (10 seconds) ) IN NS ns1.ose-nwei20140115.com.cn. IN MX 10 mail.ose-nwei20140115.com.cn. $ORIGIN ose-nwei20140115.com.cn. ns1 IN A 192.168.59.140 broker IN A 10.4.59.144 node IN A 192.168.59.140 activemq IN A 192.168.59.140 datastore IN A 192.168.59.140 2. when named is restart and check the dynamic database file, and the record "IN" exists as above yet. 3. setup and create app and check the dynamic database file, and the record "IN" also exists, but app message doesn't exist. [root@broker ~]##rhc setup -l nwei [root@broker ~]##rhc app create nj nodejs [root@broker ~]# cat /var/named/dynamic/ose-nwei20140115.com.cn.db $ORIGIN . $TTL 1 ; 1 seconds (for testing only) ose-nwei20140115.com.cn IN SOA ns1.ose-nwei20140115.com.cn. hostmaster.ose-nwei20140115.com.cn. ( 2011112904 ; serial 60 ; refresh (1 minute) 15 ; retry (15 seconds) 1800 ; expire (30 minutes) 10 ; minimum (10 seconds) ) IN NS ns1.ose-nwei20140115.com.cn. IN MX 10 mail.ose-nwei20140115.com.cn. $ORIGIN ose-nwei20140115.com.cn. ns1 IN A 192.168.59.140 broker IN A 10.4.59.144 node IN A 192.168.59.140 activemq IN A 192.168.59.140 datastore IN A 192.168.59.140 4. named is restarted and check the dynamic database file. [root@broker ~]# /etc/init.d/named restart [root@broker ~]# cat /var/named/dynamic/ose-nwei20140115.com.cn.db $ORIGIN . $TTL 1 ; 1 second ose-nwei20140115.com.cn IN SOA ns1.ose-nwei20140115.com.cn. hostmaster.ose-nwei20140115.com.cn. ( 2011112905 ; serial 60 ; refresh (1 minute) 15 ; retry (15 seconds) 1800 ; expire (30 minutes) 10 ; minimum (10 seconds) ) NS ns1.ose-nwei20140115.com.cn. MX 10 mail.ose-nwei20140115.com.cn. $ORIGIN ose-nwei20140115.com.cn. activemq A 192.168.59.140 broker A 10.4.59.144 datastore A 192.168.59.140 $TTL 60 ; 1 minute nj-mydomain CNAME broker $TTL 1 ; 1 second node A 192.168.59.140 ns1 A 192.168.59.140 when finish to create app and named is restarted, exists app message like this: "nj-mydomain CNAME broker",but missing record class "IN".
According to comment 4, the patch is already merged, and take effect. According to comment 3, the dynamic database file is rewritten by named without the "IN" tokens, this is expected behaviour, so move it to verified.