Author Topic: A record Issue not replicating?  (Read 2244 times)

killmasta93

  • Zen Monk
  • **
  • Posts: 97
  • Karma: +14/-0
    • View Profile
A record Issue not replicating?
« on: September 20, 2020, 05:57:17 pm »
Hi
Currently installed a new VM which automatically got the DHCP from zentyal which it automatic create the dynamic DNS record on zentyal.
The issue is that i changed the IP of the VM and needed to add A record and PTR record which i did on the WEBgui.
But i keep seeing the old IP
i checked in nano /var/lib/bind/db.0.168.192
which only shows PTR info

https://imgur.com/0hr8iPa.png

https://imgur.com/2vtmnrG.png

Thank you

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: A record Issue not replicating?
« Reply #1 on: September 21, 2020, 05:32:26 pm »
 :)

You can use the /usr/share/zentyal/redisvi tool in  order to check (and to change) the values stored in the redis database (it's like visudo):

For instance, I created the host "valinor" with the ip "192.168.2.100". In redisvi I can see this:

Code: [Select]
...
dns/conf/DomainTable/keys/dmn1/hostnames/keys/hstn2/ipAddresses/keys/hst3: {
   "ip" : "192.168.2.100"
}

dns/conf/DomainTable/keys/dmn1/hostnames/keys/hstn2/ipAddresses/order: [
   "hst3"
]

dns/conf/DomainTable/keys/dmn1/hostnames/keys/hstn2: {
   "hostname" : "valinor"
}

dns/conf/DomainTable/keys/dmn1/hostnames/order: [
   "hstn1",
   "hstn2"
]
...

dns/ro/DomainTable/keys/dmn1/hostnames/keys/hstn2/ipAddresses/keys/hst3: {
   "ip" : "192.168.2.100"
}

dns/ro/DomainTable/keys/dmn1/hostnames/keys/hstn2/ipAddresses/order: [
   "hst3"
]

dns/ro/DomainTable/keys/dmn1/hostnames/keys/hstn2: {
   "hostname" : "valinor"
}

dns/ro/DomainTable/keys/dmn1/hostnames/order: [
   "hstn1",
   "hstn2"
]


You can edit the database with the usual vi commands. Bear in mind that, if you want to modify the data, you have to study the database structure in order to maintain the database consistently. Read carefully the redis keys.

If you need more help, please, paste here the needed part of the redis database and I'll give you some more detailed feedback.

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

killmasta93

  • Zen Monk
  • **
  • Posts: 97
  • Karma: +14/-0
    • View Profile
Re: A record Issue not replicating? (solved)
« Reply #2 on: September 22, 2020, 04:52:56 am »
Thank you so much for the reply what i did is to update DNS and DHCP to 6.2 seems to fix the issue