[Samba] Unexpected IP resolution
Joel Hammer
Joel at HammersHome.com
Thu Jun 19 20:25:05 GMT 2003
Is it host or hosts ? Then, what do you have in /etc/resolv.conf and
/etc/hosts.conf?
Joel
On Thu, Jun 19, 2003 at 08:40:13AM -0400, Richard Prescott wrote:
> 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
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list