3.0.25pre2 and net lookup

Thomas Bork tombork at web.de
Sun Mar 25 23:22:56 GMT 2007


Hi,

from the man page of net 
http://us1.samba.org/samba/docs/man/manpages-3/net.8.html:

LOOKUP

LOOKUP HOST HOSTNAME [TYPE]

Lookup the IP address of the given host with the specified type (netbios 
suffix). The type defaults to 0x20 (workstation).

Has it to be

'net lookup tb3 HOSTNAME <00>'

or

'net lookup tb3 tb3 <00>'

?

The help of net is showing:
deveis # net help lookup
   net lookup [host] HOSTNAME[#<type>]
         gives IP for a hostname

So:
'net lookup tb3 HOSTNAME#<00>'?
'net lookup tb3 HOSTNAME #<00>'?

In all cases there is an error with the specified type or the type is 
not recognized, because

'net -d10 lookup tb3 HOSTNAME #<00>'

is showing:

[2007/03/26 01:05:16, 10] libsmb/namequery.c:internal_resolve_name(1166)
   internal_resolve_name: looking up tb3#20 (sitename (null))
[2007/03/26 01:05:16, 10] lib/gencache.c:gencache_get(226)
   Returning valid cache entry: key = NBT/TB3#20, value = 
192.168.0.15:0, timeout = Mon Mar 26 01:09:08 2007
[2007/03/26 01:05:16, 5] libsmb/namecache.c:namecache_fetch(214)
   name tb3#20 found.

net is looking for the type '<#20>' and not the type <#00>.
If using

'net -d10 lookup tb3 "<00>"'

I can see a lot of

[2007/03/26 01:09:21, 2] lib/util_tdb.c:tdb_log(675)
   tdb(unnamed): tdb_open_ex: could not open file 
/var/lock/samba/unexpected.tdb: No such file or directory

in the debug output and unexpected.tdb isn't created from samba.
I'm trying to debug a problem where nmblookup is showing the right ip 
address but 'net lookup' an old one.


der tom


More information about the samba-technical mailing list