Hi,
we have a problem with our Samba 3.0.10 on Solaris 10.
This is about nmbd only.
We can't get it to return the names we put in the lmhosts file.
On starting up, nmbd says in log.nmbd that it has added the names with the given IP address as first IP address.
It returns DNS fail if asked for a host in lmhosts though.
Our smb.conf is very simple:
# Global parameters
[global]
workgroup = RZ
netbios name = RKDVMSUE
encrypt passwords = Yes
wins support = Yes
log level = 3
# name resolve order = lmhosts host wins bcast
(Removing the comment and adding the name resolve order
didn't make any difference.)
As is our lmhosts:
132.199.180.112 MVBS13.ROE.KLIN
132.199.176.39 DUMPFBACKE
The ip address 132.199.176.39 is really a plain Sun machine.
We used the Microsoft nblookup.exe utility to test.
The outcome in log.nmbd is (grep -i dumpfbacke):
add_name_to_subnet: Added netbios name DUMPFBACKE<00> with first IP
132.199.176.39 ttl=0 nb_flags= 4 to subnet 132.199.176.45
add_name_to_subnet: Added netbios name DUMPFBACKE<20> with first IP
132.199.176.39 ttl=0 nb_flags= 4 to subnet 132.199.176.45
wins_process_name_query: name query for name DUMPFBACKE<20> from IP
132.199.176.176
wins_process_name_query: name query for name DUMPFBACKE<20> not found -
doing dns lookup.
added DNS query for DUMPFBACKE<20>
add_dns_result: Negative DNS answer for DUMPFBACKE
add_name_to_subnet: Added netbios name DUMPFBACKE<20> with first IP
0.0.0.0 ttl=3600 nb_flags= 4 to subnet WINS_SERVER_SUBNET
I wonder why nbmd first adds the IP address to the cache, but cannot
find it on request.
What we really want to do is:
We have clients asking for MVBS13.ROE.KLIN. This is an application
error, the clients mean to ask for MVBS13. We thought that adding
the "wrong" name (which is still a valid netbios name) to the lmhosts file
might be a workaround.
Any hint is welcome. It would also be good to know if it's possible
to get a dump the current netbios name database.
regards,
Michaela Kurz
we have a problem with our Samba 3.0.10 on Solaris 10.
This is about nmbd only.
We can't get it to return the names we put in the lmhosts file.
On starting up, nmbd says in log.nmbd that it has added the names with the given IP address as first IP address.
It returns DNS fail if asked for a host in lmhosts though.
Our smb.conf is very simple:
# Global parameters
[global]
workgroup = RZ
netbios name = RKDVMSUE
encrypt passwords = Yes
wins support = Yes
log level = 3
# name resolve order = lmhosts host wins bcast
(Removing the comment and adding the name resolve order
didn't make any difference.)
As is our lmhosts:
132.199.180.112 MVBS13.ROE.KLIN
132.199.176.39 DUMPFBACKE
The ip address 132.199.176.39 is really a plain Sun machine.
We used the Microsoft nblookup.exe utility to test.
The outcome in log.nmbd is (grep -i dumpfbacke):
add_name_to_subnet: Added netbios name DUMPFBACKE<00> with first IP
132.199.176.39 ttl=0 nb_flags= 4 to subnet 132.199.176.45
add_name_to_subnet: Added netbios name DUMPFBACKE<20> with first IP
132.199.176.39 ttl=0 nb_flags= 4 to subnet 132.199.176.45
wins_process_name_query: name query for name DUMPFBACKE<20> from IP
132.199.176.176
wins_process_name_query: name query for name DUMPFBACKE<20> not found -
doing dns lookup.
added DNS query for DUMPFBACKE<20>
add_dns_result: Negative DNS answer for DUMPFBACKE
add_name_to_subnet: Added netbios name DUMPFBACKE<20> with first IP
0.0.0.0 ttl=3600 nb_flags= 4 to subnet WINS_SERVER_SUBNET
I wonder why nbmd first adds the IP address to the cache, but cannot
find it on request.
What we really want to do is:
We have clients asking for MVBS13.ROE.KLIN. This is an application
error, the clients mean to ask for MVBS13. We thought that adding
the "wrong" name (which is still a valid netbios name) to the lmhosts file
might be a workaround.
Any hint is welcome. It would also be good to know if it's possible
to get a dump the current netbios name database.
regards,
Michaela Kurz