nameresolution (netbios, dns)

Peter Pilsl pilsl at
Sun Nov 25 10:17:01 GMT 2001


On a new server ( the host/dns-name is
different from the netbios-name.  host/dnsname is "server2" and
netbiosname is "server". There is another host ( in the
network that has dnsname "server" ...
nameresolution on systemlevel is done via dns only (no hosts-entries)

Now I have to discover that nameresolving brings unexpected
difficulties. Some names are resolved "false" and other take very long
amount of time.

if I try to query the list of servershares the command
fails cause smbclient seems to resolve via dns first and gets a
different IP for the name "server" via DNS ...

$/usr/local/samba/bin/smbclient -L //server -U peter
INFO: Debug class all level = 5   (pid 29237 from pid 29237)
pm_process() returned Yes
added interface ip= bcast= nmask=
added interface ip= bcast= nmask=
error connecting to (No route to host)
Connection to server failed

imho the "correct" resolve for the netbios-name "server" would have been, which is the address of machine with dnsname=server2 and
netbiosname "server".

If I try from a different client (that has no dns) I can query the
list of servershares, but it takes up to 10 seconds ...

#/usr/local/samba/bin/smbclient -L //server -U peter
added interface ip= bcast= nmask=
added interface ip= bcast= nmask=

If I add the correct IP-adress using the -I switch of smbclient all my
problems vanishes. I guess the equivalent of the -I switch on win-side
is a proper entry in lmhosts, but I really dont want to do this on all
our clients.

I know that its a very bad idea to mixup netbios and dns-names, but
Ido some servermigrating here and until all the stuff is finished,
this seems the best solution. (I migrate step by step : fileserver,
mailserver ...)

How can I avoid this name-confusion ? Would winns help me out of my
miserable situation ? (I dont think so ...)

the relevant parameters in smb.conf are :

	bind interfaces only = yes
	interfaces =
	netbios name = server
	name resolve order = host
	wins proxy = no
	wins support = no


mag. peter pilsl

phone: +43 676 3574035
fax  : +43 676 3546512
email: pilsl at
sms  : pilsl at

pgp-key available

More information about the samba mailing list