nmblookup doesn't use lmhosts file to resolve names...
Gerald (Jerry) Carter
jerry at samba.org
Wed Aug 8 16:44:49 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aravinda,
> We added a following entry to lmhosts file:
>
> <ipv4-address> <host-name>
>
> When we executed "$ nmblookup <host-name>" and this resulted in the message
> "name_query failed to find name <host-name>".
>
> But when we tried the $nmblookup --lookup-by-ip <ipv4-address>, it was
> successful in resolving.
>
> Note that no special "name resolve order" was specified in smb.conf.
>
> So, it appears like nmblookup does not use lmhosts file to
> resolve the names. Could you please let us know if this is the case
> and whether it is an intended behaviour?
This is intended IMO. Neither does nslookup look in /etc/hosts.
cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGufMBIR7qMdg1EfYRAuvwAJ4qbWL3N05zmT6BRSz9KQWKn5ZwVwCgzYav
5AgdneLbJeJ+0kk9eFh3yEY=
=/g6T
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list