[Samba] dns replication error due to deleted records

Luca Olivetti luca at wetron.es
Thu Oct 10 20:22:13 UTC 2019


El 10/10/19 a les 22:05, Rowland penny via samba ha escrit:

>>
>> subnet 192.168.1.0 netmask 255.255.255.0 {
> Hmm, I take it that 192.168.90.2 and 192.168.90.5 are your DCs, so why 
> are your clients in the '192.168.1.0/24' subnet ?

because I keep the servers in a different subnet/vlan than the clients


>>   range 192.168.1.101 192.168.1.250;
>>   on commit {
>>     set noname = concat("dhcp-", binary-to-ascii(10, 8, "-", 
>> leased-address));
>>     set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
>>     set ClientName = pick-first-value(option host-name, 
>> host-decl-name, config-option host-name, noname);
>>     execute("/etc/dhcp/update.sh", "add", ClientIP, ClientName);
>>   }
>>
>>   on release {
>>     #ClientIP y ClientName estan asociado al lease
>>     execute("/etc/dhcp/update.sh", "delete", ClientIP, ClientName);
>>   }
>>
>>     on expiry {
>>     #ClientIP y ClientName estan asociado al lease
>>     execute("/etc/dhcp/update.sh", "delete", ClientIP, ClientName);
>>   }
> How does it know which IP & Name to delete ?

It's registered in the lease with the "set ClientIP" and "set 
ClientName" in the "on commit" clause

>> [sysvol]
>>         path = /var/lib/samba/sysvol
>>         read only = No
>>         wide links = Yes 
> 
> Why do you need 'wide links' in sysvol ?

I knew you would ask ;-)
Because up until a few weeks ago we had a netapp filer where there was a 
share for software installation (via domain policies) *but* the client 
machines had endless problems accessing that share with the machine account.
OTOH no client had problem accessing sysvol on the dc.
I kept those shares so I could easily copy the software to install and 
nfs mount that same directory on the DCs and symlink it inside sysvol.
Now we don't use netapp anymore (good riddance!) but I still keep the 
same layout: if it ain't broke don't fix it ;-)

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007



More information about the samba mailing list