Bouke J. Henstra
2014-Jul-25 18:22 UTC
[Samba] BIND9_FLATFILE to BIND9_DLZ | Error parsing DNS data from '/opt/samba/private/dns/th01.inet.zone' ()
Hi all, I got some issues with adding DNS records. I still use BIND9_FLATFILE on my first DC. Maybe this is the problem? What I would like to try is to change from BIND9_FLATFILE to BIND9_DLZ. I change the backend from BIND9_FLATFILE to BIND9_DLZ twice (in the past or other servers) but I don't remember how I did this anymore! What I did try is the following... and that didn't work. I also listed my zone file. Any suggestions? Your help is very much appreciated. root at comsrv01a:/opt/samba/sbin# ./samba_upgradedns --realm=th01.inet --dns-backend=BIND9_DLZ --username=Admin --password=############ Reading domain information DNS accounts already exist Reading records from zone file /opt/samba/private/dns/th01.inet.zone Error parsing DNS data from '/opt/samba/private/dns/th01.inet.zone' () DNS records will be automatically created Traceback (most recent call last): File "./samba_upgradedns", line 316, in <module> ncname = msg[0]['nCName'][0] KeyError: 'No such element' root at comsrv01a:/opt/samba/sbin# cat /opt/samba/private/dns/th01.inet.zone $ORIGIN . $TTL 604800 ; 1 week th01.inet IN SOA comsrv01a.th01.inet. hostmaster.th01.inet. ( 2013061871 ; serial 172800 ; refresh (2 days) 14400 ; retry (4 hours) 3628800 ; expire (6 weeks) 604800 ; minimum (1 week) ) NS comsrv01a.th01.inet. $TTL 900 ; 15 minutes A 192.168.0.200 A 192.168.0.201 $ORIGIN th01.inet. $TTL 604800 ; 1 week _kerberos TXT "TH01.INET" $ORIGIN _msdcs.th01.inet. 29f1582a-3589-4ebb-9755-7be96de04949 CNAME comsrv01tst.th01.inet. $ORIGIN _tcp.Default-First-Site-Name._sites.dc._msdcs.th01.inet. $TTL 900 ; 15 minutes _kerberos SRV 0 100 88 comsrv01a.th01.inet. SRV 0 100 88 comsrv01tst.th01.inet. _ldap SRV 0 100 389 comsrv01a.th01.inet. SRV 0 100 389 comsrv01tst.th01.inet. $ORIGIN _tcp.dc._msdcs.th01.inet. _kerberos SRV 0 100 88 comsrv01a.th01.inet. SRV 0 100 88 comsrv01tst.th01.inet. _ldap SRV 0 100 389 comsrv01a.th01.inet. SRV 0 100 389 comsrv01tst.th01.inet. $ORIGIN _msdcs.th01.inet. _ldap._tcp.029d45d8-2621-4c7c-a944-23884cfd0dad.domains SRV 0 100 389 comsrv01a.th01.inet. SRV 0 100 389 comsrv01tst.th01.inet. $TTL 604800 ; 1 week f3ec5ecd-e121-4024-bc85-83b09e07401a CNAME comsrv01a.th01.inet. $TTL 900 ; 15 minutes gc A 192.168.0.200 A 192.168.0.201 $ORIGIN gc._msdcs.th01.inet. _ldap._tcp.Default-First-Site-Name._sites SRV 0 100 3268 comsrv01a.th01.inet. SRV 0 100 3268 comsrv01tst.th01.inet. _ldap._tcp SRV 0 100 3268 comsrv01a.th01.inet. SRV 0 100 3268 comsrv01tst.th01.inet. $ORIGIN _msdcs.th01.inet. $TTL 604800 ; 1 week _ldap._tcp.pdc SRV 0 100 389 comsrv01a.th01.inet. $ORIGIN _tcp.Default-First-Site-Name._sites.th01.inet. $TTL 900 ; 15 minutes _gc SRV 0 100 3268 comsrv01a.th01.inet. SRV 0 100 3268 comsrv01tst.th01.inet. _kerberos SRV 0 100 88 comsrv01a.th01.inet. SRV 0 100 88 comsrv01tst.th01.inet. _ldap SRV 0 100 389 comsrv01a.th01.inet. SRV 0 100 389 comsrv01tst.th01.inet. $ORIGIN _tcp.th01.inet. _gc SRV 0 100 3268 comsrv01a.th01.inet. SRV 0 100 3268 comsrv01tst.th01.inet. _kerberos SRV 0 100 88 comsrv01a.th01.inet. SRV 0 100 88 comsrv01tst.th01.inet. $TTL 604800 ; 1 week _kerberos-master SRV 0 100 88 comsrv01a.th01.inet. $TTL 900 ; 15 minutes _kpasswd SRV 0 100 464 comsrv01a.th01.inet. SRV 0 100 464 comsrv01tst.th01.inet. _ldap SRV 0 100 389 comsrv01a.th01.inet. SRV 0 100 389 comsrv01tst.th01.inet. $ORIGIN _udp.th01.inet. _kerberos SRV 0 100 88 comsrv01a.th01.inet. SRV 0 100 88 comsrv01tst.th01.inet. $TTL 604800 ; 1 week _kerberos-master SRV 0 100 88 comsrv01a.th01.inet. $TTL 900 ; 15 minutes _kpasswd SRV 0 100 464 comsrv01a.th01.inet. SRV 0 100 464 comsrv01tst.th01.inet. $ORIGIN th01.inet. $TTL 604800 ; 1 week comsrv01a A 192.168.0.200 comsrv01tst A 192.168.0.201 $TTL 3600 ; 1 hour nas001th A 192.168.0.17 $TTL 1200 ; 20 minutes OZD01 A 192.168.0.232 S01D01 A 192.168.0.101 S01D02 A 192.168.0.102 S01D03 A 192.168.0.103 S01D04 A 192.168.0.114 S01D05 A 192.168.0.105 S01DA1 A 192.168.0.75 S01DX1 A 192.168.0.40 S01DX2 A 192.168.0.110 S01N01 A 192.168.0.71 S01N99 A 172.16.24.55 S01NV1 A 192.168.0.66 THSRV01WIN A 192.168.0.18 $TTL 86400 ; 1 day XRX9C934E2E4493 A 192.168.0.36 Kind regards, Bouke
Maybe Matching Threads
- [samba_upgradedns] Error parsing DNS data
- [samba_upgradedns] Error parsing DNS data
- Question about adding DNS records
- [Samba 4.0.9 | Win 7 x64 | Office 2007 x86 | Folder Redirection | Local Cache] : Word-documents, Corrupt
- DNS: Migrate from BIND9_FLATFILE to SAMBA_INTERNAL (Samba 4.1.17)