Samba internal DNS has wrong hostname

Status
Not open for further replies.

gmangum

Cadet
Joined
Jan 11, 2016
Messages
3
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.
 
D

dlavigne

Guest
You shouldn't be getting a traceback. Please create a bug at bugs.freenas.org that includes all of the above info and post the bug number here.
 

zoomzoom

Guru
Joined
Sep 6, 2015
Messages
677
Have you tried adding them to the Host Name Database within the GUI under Network (unless that box doesn't affect Samba)?
 

gmangum

Cadet
Joined
Jan 11, 2016
Messages
3
Thanks for the suggestion, but it looks like the host name database just adds the entries to /etc/hosts on the FreeNAS box. It doesn't add them to the samba internal DNS. Plus it seems that DNS is broken until I get the hostname fixed.
 
Status
Not open for further replies.
Top