[Pkg-samba-maint] Bug#591752: samba-common: please change the name resolv order

Fabian Greffrath fabian at greffrath.com
Fri Aug 6 06:58:40 MDT 2010


Am 06.08.2010 14:12, schrieb Volker Lendecke:
> It is changeable from the outside. See the smb.conf file. If
> you want it programmatic, do it via the registry
> configuration. Or do you mean libsmbclient must offer an
> API? You can alway deliver an IP address to libsmbclient and
> implement the name lookup yourself.

OK, I am a bit puzzled now. Yes, I think libsmbclient should provide 
an API to allow for changing the name resolv order from the outside. 
Furthermore, I have no idea what "registry configuration" means in 
this context.

Since GVFS should not be allowed to modify system-wide configuration 
files (i.e. smb.conf, owned by root), it has no chance than to rely on 
such API. Since name-to-IP lookup via DNS obviously reports bogus 
results and GVFS has no chance to query "bcast" without such API, what 
else could it do to get the actual IP address?

> That's something gvfs should implement IMHO.

Yes, that's what I meant. The "if the first try fails or reports a 
bogus IP, try a second time with bcast" attempt should be implemented 
in the frontends, and not directly in Samba.

  - Fabian


More information about the samba-technical mailing list