[Samba] Join AD fails DNS update
L.P.H. van Belle
belle at bazuin.nl
Wed Jun 25 01:41:27 MDT 2014
and this is not needed... if the A record in the dns is correct.
>
>1. net ads leave -UAdministrator
>2. remove the A record on the DC
>3. net ads join -UAdministrator
If you have a correct A record in the dns, you still can join the domain.
I just gives a error of unable to create the dns record at join.
imo a bug of samba and can be ignored. the hostname wil be created in the AD anyway.
and i explain why.
1) pc gets dhcp ip, and this is added in the dns. ( in case of dynamic dns )
2) pc joins the ad.. and gets added in the ad.
and during this join a A record is also tried to create in the dns.
but is is already there... so it gives back an error...
Samba should check if the A record already exist, if so, dont create it.
I've tested this, multiple times, and if i have to rejoin a domain,
just clear the /var/lib/samba
and remove the hostname from the AD, and you can rejoin.
Best regards,
Louis
>-----Oorspronkelijk bericht-----
>Van: steve at steve-ss.com [mailto:samba-bounces at lists.samba.org]
>Namens steve
>Verzonden: dinsdag 24 juni 2014 19:00
>Aan: samba at lists.samba.org
>Onderwerp: Re: [Samba] Join AD fails DNS update
>
>On Tue, 2014-06-24 at 18:06 +0200, Lars Hanke wrote:
>> Hi,
>>
>> > setup the resolv.conf
>> My resolv.conf looks okay and I can resolve other AD specific stuff.
>>
>> > check you hosts file
>> > 127.0.0.1 localhost localhost.localdomain.
>> > IP_OF_THIS_SERVER hostname.yourinternal.domain.tld
>
>The ONLY way we can get it to register upon domain join is:
>
>/etc/hosts
>127.0.0.1 fqdn hostname localhost
>
>Lose the IP_OF_THIS_SERVER for the join.
>
>And /etc/hostname
>fqdn
>
>1. net ads leave -UAdministrator
>2. remove the A record on the DC
>3. net ads join -UAdministrator
>
>Nothing else works on Ubuntu. YMMV on deb.
>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