[Samba] Device ends up with multiple dns records and IP addresses

Sebastian Arcus s.arcus at open-t.co.uk
Wed Nov 10 13:47:35 UTC 2021


On 09/11/2021 14:29, Rowland Penny via samba wrote:
> On Tue, 2021-11-09 at 13:08 +0000, Sebastian Arcus via samba wrote:
>>
>> I have just checked this server today, and the printer has two IP
>> addresses again:
>>
>>
>> # host SEC001599AB9439
>> SEC001599AB9439.ihs-uk.lan has address 192.168.51.235
>> SEC001599AB9439.ihs-uk.lan has address 192.168.51.229
>>
>>
>> There are some other hosts with multiple IP's - an iPhone has 5 IP
>> addresses.
>>
>> I then went to test manually adding a record with two IP addresses
>> to
>> the dns server using the dhcp-dyndns.sh script:
>>
>>
>>
>> /etc/dhcpd.d# ./dhcp-ddns.sh add 192.168.51.200 abcdef test1
> 
> What OS is this running on ?
> I do not recognise '/etc/dhcpd.d'

It's on Slackware 14.1 - but I created /etc/dhcpd.d to try and keep the 
path structure similar to other configs in /etc

> 
>>
>> However, by inserting debug statements, I discovered that the line
>> above
> 
> Can you supply the script line that crashes for you.


samba-tool dns delete ${Server} ${domain} "${name}" A ${ip} -k yes


In case it helps my script version shows 0.9.0. I can upgrade if you 
think that might fix things



More information about the samba mailing list