Web lists-archives.com

Re: [Samba] replication fails




Hai, 

Ok, so the reboot changed your resolv.conf 
check the timestamp of /etc/resolv.confs
Write this down. 

> So I assume it should point to the own IPv4-IP of DC1 itself, 
> which is .205
Yes correct. 
After that reboot the server. 
Check the timestamp again and/or did it change? 

Now the hunt for the resolv.conf change. 

cat /etc/network/interfaces
If you have dns-nameserver these are picked up with systemd-resolved. 
Or by package: resolvconf 

Run these: 
networkctl status
systemd-resolve --status

Show the output. 

Other options: 
Server with dhcp ip? 
echo 'make_resolv_conf() { :; }' > /etc/dhcp/dhclient-enter-hooks.d/leave_my_resolv_conf_alone
chmod 755 /etc/dhcp/dhclient-enter-hooks.d/leave_my_resolv_conf_alone

Or edit /etc/dhcp/dhclient.conf 
supersede domain-name "example.com";
supersede domain-search "example.com";
supersede domain-name-servers 127.0.0.1;


One of above is your fix. ;-) 
A last resort fix is : 
rm -f /etc/resolv.conf
editor /etc/resolv.conf
chattr +i /etc/resolv.conf

But i dont like that, its up2you. 


Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens 
> Stefan G. Weichinger via samba
> Verzonden: woensdag 13 maart 2019 11:44
> Aan: samba@xxxxxxxxxxxxxxx
> Onderwerp: Re: [Samba] replication fails
> 
> Am 13.03.19 um 11:33 schrieb Stefan G. Weichinger via samba:
> 
> > where does that come from ... everything was fine last time 
> we checked
> > ... very frustrating
> 
> I mean, replication worked fine for a month or so already. And afaik
> there were no changes on the DCs (maybe unattended debian-upgrades).
> 
> DC1 has:
> 
> nameserver 192.168.16.111
> search my.tld
> 
> .111 is the router/fw to WAN ... for forwarding DNS, but this 
> should be
> covered with smb.conf already:
> 
> dns forwarder = 192.168.16.111
> 
> -
> 
> So I assume it should point to the own IPv4-IP of DC1 itself, 
> which is .205
> 
> But I don't understand yet if the mistake is on DC1 and/or 
> DC2 so I wait
> with further changes.
> 
> prod machines, you know.
> 
> Maybe resolv.conf was changed by some automation script here, 
> could be,
> can't bet right now.
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba