[Samba] Re: Unexpected IP resolution

Dragan Krnic dkrnic at lycos.com
Fri Jun 20 18:27:12 GMT 2003

>The result from nmblookup (same result on all 
>platform) for a given samba server isn't what I 

But it is exactly what nmblookup expects if you
configure your card the way you did!

> netbios name = ourserver2
> netbios aliases = ourserverdev ourserverlab ourserver
> name resolve order = hosts bcast
>             ourserver1
>             ourserver2
>            ourserver
>            ourserverdev
>            ourserverlab
>My hostname is set to ourserver2.
>ifconfig :
>2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc >pfifo_fast qlen 100
> link/ether 00:99:fc:99:99:fc brd ff:ff:ff:ff:ff:ff
> inet brd scope global eth0
> inet brd scope global secondary eth0:1
> inet brd scope global secondary eth0:2
> inet brd scope global secondary eth0:3
>On whatever machine I run a nmblookup, I get :
>$ nmblookup ourserver2 ->querry ourserver2 on => 
>$ nmblookup ourserverdev ->querry ourserverdev on => 
>$ nmblookup ourserverlab ->querry ourserverlab on => 

Sure, that's what got entered in the WINS tdb.

>A tcpdump/ethereal show me that it is really > that answers me.

Of course. The computer knows its name is ourserver2
and its address is You didn't ask the
computer to tell you its name and address. You
asked nmblookup to tell you what address is entered
for each of those names. Now you know - each one is 
pegged to

>Is it normal that I get for every >machine ?  How comes ?

Yes, it's normal. Giving several addresses in the
same network to an ether card just doesn't cut it.
You may just as well leave the real address and set 
different aliases to map to the same IP address, 
although it's questionable what that may be good for.

So, what did you actually want to do? Perhaps there
are easier ways to do it and someone on this list
can help you. We know that you would like nmblookup
to give you a different address for every alias but
we don't know why you would want something like that.
What should such obfuscation accomplish?

Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!

More information about the samba mailing list