On Fri, 2021-12-10 at 11:08 +0100, Andrea Venturoli via samba wrote:> On 12/10/21 10:58, Rowland Penny via samba wrote: > > > It looks fairly obvious, Your DC cannot find its own dns server. > > Yes, that's obvious. > > Less obvious is: > > _ how could it be that he cannot find himself???I do not know, I am not the one sat in front of the DC :-) Does the jails /etc/resolv.conf point to its ipaddress (not 127.0.0.1) ?> > _ for "DC" you mean the Samba processes? Because, as I said, on that > same DC (host) nslookup works properly; > > _ why does it even run samba_dnsupdate in the first place?There are quite a number of dns records on a DC that need to exist, samba_dnsupdate checks that they exist and creates them if they don't, it has nothing to do with client ipaddresses.> > _ what to look for to diagnose this?check /etc/resolv.conf, /etc/hosts /etc/hostname for a start. Rowland
On 12/10/21 11:46, Rowland Penny via samba wrote:> Does the jails /etc/resolv.conf point to its ipaddress (not 127.0.0.1) > ?Yes.> There are quite a number of dns records on a DC that need to exist, > samba_dnsupdate checks that they exist and creates them if they don't,Thanks. So, IIUC, this is run periodically on a DC?>> _ what to look for to diagnose this? > > check /etc/resolv.conf, /etc/hosts /etc/hostname for a start.# cat /etc/resolv.con nameserver 192.168.128.2 domain ad.xxxx.netfence.it # grep -v ^# /etc/hosts 127.0.0.1 localhost localhost.ad.xxxx.netfence.it 192.168.128.2 dc1.ad.xxxx.netfence.it dc1 # cat /etc/hostname cat: /etc/hostname: No such file or directory (This is set when creating the jail) # hostname dc1.ad.xxxx Changing hostname to dc1.ad.xxxx.netfence.it seems to have stop this (at least for now). I wonder why it worked for years, then stopped. Also I wonder why it works with an almost identical setup elsewhere. In any case, thanks. bye av.