[Samba] Unexpected IP resolution

Richard Prescott richard at ltrim.com
Thu Jun 19 12:40:29 GMT 2003


hi!

Sorry in advance if I am not on the right mailing-list and sorry if my
question is cover somewhere is doc (I didn't find anything).

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

The key part of my smb.conf is: 
[global]
        netbios name = ourserver2
        netbios aliases = ourserverdev ourserverlab ourserver
        name resolve order = hosts bcast

And the key part of my /etc/hosts is:

10.10.10.1             ourserver1
10.10.10.2             ourserver2
10.10.10.10            ourserver
10.10.10.11            ourserverdev
10.10.10.12            ourserverlab

(Having it or not in lmhosts doesn't change anything.)

My hostname is set to ourserver2.

And the last but not the least is my 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 10.10.10.2/24 brd 10.10.10.255 scope global eth0
    inet 10.10.10.10/24 brd 10.10.10.255 scope global secondary eth0:1
    inet 10.10.10.11/24 brd 10.10.10.255 scope global secondary eth0:2
    inet 10.10.10.12/24 brd 10.10.10.255 scope global secondary eth0:3

On whatever machine I run a nmblookup, I get :
$ nmblookup ourserver2
querying ourserver2 on 10.10.10.255
10.10.10.12 ourserver2<00>
$ nmblookup ourserverdev
querying ourserverdev on 10.10.10.255
10.10.10.12 ourserverdev<00>
$ nmblookup ourserverlab
querying ourserverlab on 10.10.10.255
10.10.10.12 ourserverlab<00>

It is the stock samba server (with updates) coming with Redhat 9 :
$ rpm -q samba
samba-2.2.7a-8.9.0

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

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

Thanks in advance.

Richard






More information about the samba mailing list