opennetadmin / ona

OpenNetAdmin IP Address Management (IPAM) system
opennetadmin.com
GNU General Public License v2.0
141 stars 35 forks source link

Build_dns creates unusable ptr records #168

Open Joe-Louis opened 3 years ago

Joe-Louis commented 3 years ago

After tinkering with this project for 2 days, I noticed that reverse lookups don't work. After investigating and comparing to my currently working bind install, I noticed that Build_dns generates reverse lookup files with incorrect entries. This causes bind to ignore the entry when restarting. I have pasted below a valid entry that works and one that doesn't. I have tested this on the ona server by manually changing the ptr record to look like my working bind installs record. Not sure how to modify the code that generates the record to properly enter it. The ip I am using for the A record is 192.168.85.1. Any help would be appreciated. Thank you.

(working entry) 1 IN PTR router.example.org.

(broken entry) 1.85.168.192.in-addr.arpa. IN PTR router.example.org.