[Samba] Samba4: Wrong computer name / IP address assignment after DHCP reset

L.P.H. van Belle belle at bazuin.nl
Wed Oct 22 01:12:00 MDT 2014


there is an other way to fix this.. 

- stop the dhcp server
- remove the A and PTR records from DNS.
- remove the file(s) /var/lib/dhcp/dhcpd.leases(~) 
- powerdown the PC's 
- startup the dhcp server.
- and startup the pc's again. 

now the difference between the DNS entries and DHCP lease file is fixed. 

Louis


>-----Oorspronkelijk bericht-----
>Van: steve at steve-ss.com [mailto:samba-bounces at lists.samba.org] 
>Namens steve
>Verzonden: dinsdag 21 oktober 2014 21:00
>Aan: samba at lists.samba.org
>Onderwerp: Re: [Samba] Samba4: Wrong computer name / IP 
>address assignment after DHCP reset
>
>On 21/10/14 20:48, X-Dimension wrote:
>> Am 21.10.2014 um 18:23 schrieb steve:
>>> On 21/10/14 18:12, mots wrote:
>>>> I've read that just now, you didn't configure your DHCP 
>server to update
>>>> DNS records if you've just followed that tutorial.
>>>>
>>>
>>> Hi
>>> bind will update windows clients with simply:
>>>
>>> tkey-gssapi-keytab "/path/to/samba/private/dns.keytab";
>>> at /path/to/named.conf
>>>
>>> Make sure named has r on the keytab and rw on the dns dbs. Is the
>>> problem rather with Linux boxes not updating?
>>> Steve
>>>
>>>
>> Hi Steve,
>>
>> i had take a look into /etc/bind/named.conf.options and
>> "tkey-gssapi-keytab "/path/to/samba/private/dns.keytab"; is 
>already set
>> here.
>>
>> I also looked into /var/log/syslog and i have found entrys like this:
>>
>> client 192.168.1.82#49398: update 'mydomain.lan/IN' denied
>> named[1161]: samba_dlz: cancelling transaction on zone mydomain.lan
>> named[1161]: samba_dlz: starting transaction on zone mydomain.lan
>> named[1161]: samba_dlz: disallowing update of
>> signer=computer-2\$\@MYDOMAIN.LAN 
>name=Computer-2.mydomain.lan type=AA$
>> named[1161]: client 192.168.1.82#60064: updating zone
>> 'mydomain.lan/NONE': update failed: rejected by secure 
>update (REFUSED)
>> named[1161]: samba_dlz: cancelling transaction on zone mydomain.lan
>>
>> It looks like only some clients have this problem and most 
>of the other
>> are doing this:
>
>If you've only a few then quicker to to leave the domain, remove the A 
>using samba-tool dns and rejoin.
>HTH,
>Steve
>
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list