I installed FreeNAS 9.3.1 on a new system. I changed the hostname in the GUI from freenas.home.lan to nas01.home.lan. Yesterday I enabled the domain controller, and wanted to add my local DNS entries. When I try to add a record to the DNS, I get:
-----------------------------------------------------------------------------------------------------------------------------------
[root@nas01] /var/log/samba4# samba-tool dns add 192.168.1.10 home.lan h1 A 192.168.1.80 -U%
ERROR(runtime): uncaught exception - (1383, 'WERR_INTERNAL_DB_ERROR')
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/dns.py", line 1070, in run
0, server, zone, name, add_rec_buf, None)
-----------------------------------------------------------------------------------------------------------------------------------
I listed the DNS info and get:
-----------------------------------------------------------------------------------------------------------------------------------
[root@nas01] /var/log/samba4# samba-tool dns query 127.0.0.1 home.lan @ ALL -U%
Name=, Records=3, Children=0
SOA: serial=1, refresh=900, retry=600, expire=86400, minttl=3600, ns=freenas.home.lan., email=hostmaster.home.lan. (flags=600000f0, serial=1, ttl=3600)
NS: freenas.home.lan. (flags=600000f0, serial=1, ttl=900)
A: 192.168.1.10 (flags=600000f0, serial=1, ttl=900)
Name=_msdcs, Records=0, Children=0
Name=_sites, Records=0, Children=1
Name=_tcp, Records=0, Children=4
Name=_udp, Records=0, Children=2
Name=DomainDnsZones, Records=0, Children=2
Name=ForestDnsZones, Records=0, Children=2
Name=freenas, Records=1, Children=0
A: 192.168.1.10 (flags=f0, serial=1, ttl=900)
-----------------------------------------------------------------------------------------------------------------------------------
I've searched and tried various ways to update the hostname of the nameserver (freenas box), but no luck. How can I correct the DNS config? As far as I can tell, samba is using the new hostname (e.g. smb4.conf).
Thanks for any help.
-----------------------------------------------------------------------------------------------------------------------------------
[root@nas01] /var/log/samba4# samba-tool dns add 192.168.1.10 home.lan h1 A 192.168.1.80 -U%
ERROR(runtime): uncaught exception - (1383, 'WERR_INTERNAL_DB_ERROR')
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/samba/netcmd/dns.py", line 1070, in run
0, server, zone, name, add_rec_buf, None)
-----------------------------------------------------------------------------------------------------------------------------------
I listed the DNS info and get:
-----------------------------------------------------------------------------------------------------------------------------------
[root@nas01] /var/log/samba4# samba-tool dns query 127.0.0.1 home.lan @ ALL -U%
Name=, Records=3, Children=0
SOA: serial=1, refresh=900, retry=600, expire=86400, minttl=3600, ns=freenas.home.lan., email=hostmaster.home.lan. (flags=600000f0, serial=1, ttl=3600)
NS: freenas.home.lan. (flags=600000f0, serial=1, ttl=900)
A: 192.168.1.10 (flags=600000f0, serial=1, ttl=900)
Name=_msdcs, Records=0, Children=0
Name=_sites, Records=0, Children=1
Name=_tcp, Records=0, Children=4
Name=_udp, Records=0, Children=2
Name=DomainDnsZones, Records=0, Children=2
Name=ForestDnsZones, Records=0, Children=2
Name=freenas, Records=1, Children=0
A: 192.168.1.10 (flags=f0, serial=1, ttl=900)
-----------------------------------------------------------------------------------------------------------------------------------
I've searched and tried various ways to update the hostname of the nameserver (freenas box), but no luck. How can I correct the DNS config? As far as I can tell, samba is using the new hostname (e.g. smb4.conf).
Thanks for any help.