[PATCH] Save some DNS and NBT name queries while joining a domain

Uri Simchoni urisimchoni at gmail.com
Tue Jul 7 20:23:00 CEST 2015


On Tue, Jul 7, 2015 at 2:50 PM, Volker Lendecke
<Volker.Lendecke at sernet.de> wrote:
> On Sun, Jul 05, 2015 at 12:24:14PM +0300, Uri Simchoni wrote:
<snip>
>>
>> [1/2] is a re-submission of something I sent about a week ago -
>> letting dsgetdcname() know whether the given domain name is the FQDN
>> or the flat name. This saves rather pointless queries (use NBT to
>> lookup FQDN, use DNS to look for flat names), and also fixes one case
>> in which the on-site DC is an RODC and netbios is disabled.
>
> This looks good to me.
>
> One question: Why do you only apply it for an explicitly
> given domain name? Doesn't the same also apply to the
> default value of "domain", which is lp_realm()?
>

domain_name_type is initialized with JoinDomNameTypeDNS, so if no
explicit domain name is given, the lookup is DNS only.

Thanks,
Uri.


More information about the samba-technical mailing list