Pascal Giannakakis
2003-Feb-12 15:09 UTC
[Samba] nmblookup can't resolve IPs (but SMB-names)
Hi there, i have Samba 2.2.7a running on FreeBSD-STABLE 4.7. I set up a few things and smbd and nmbd start up at boot, i can browse the net. However, nmblookup can only find IPs by SMB-names, but not SMB-names by IPs. Here is an example output of the failed lookup: %nmblookup -d 3 210.104.1.133 Initialising global parameters params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf" Processing section "[global]" added interface ip=210.104.1.133 bcast=210.104.1.255 nmask=255.255.255.0 bind succeeded on port 0 Socket opened. querying 210.104.1.133 on 210.104.1.255 name_query failed to find name 210.104.1.133 Why is it not working? We do not have a WINS in our network and it uses default "lmhosts host wins bcast" name resolve order. I get the same output for any IP in our network. Other ppl can see and browse my PC. Thanx. PS: here is the log of the working lookup: %nmblookup -d 3 KATWS_PG Initialising global parameters params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf" Processing section "[global]" added interface ip=210.104.1.133 bcast=210.104.1.255 nmask=255.255.255.0 bind succeeded on port 0 Socket opened. querying KATWS_PG on 210.104.1.255 Got a positive name query response from 210.104.1.133 ( 210.104.1.133 ) 210.104.1.133 KATWS_PG<00> -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage!
When using an IP address you need the -A option nmblookup -d 3 -A 210.104.1.133 Pascal Giannakakis wrote:> > Hi there, > > i have Samba 2.2.7a running on FreeBSD-STABLE 4.7. I set up a few things and > smbd and > nmbd start up at boot, i can browse the net. > > However, nmblookup can only find IPs by SMB-names, but not SMB-names by IPs. > Here is > an example output of the failed lookup: > > %nmblookup -d 3 210.104.1.133 > Initialising global parameters > params.c:pm_process() - Processing configuration file > "/usr/local/etc/smb.conf" > Processing section "[global]" > added interface ip=210.104.1.133 bcast=210.104.1.255 nmask=255.255.255.0 > bind succeeded on port 0 > Socket opened. > querying 210.104.1.133 on 210.104.1.255 > name_query failed to find name 210.104.1.133 > > Why is it not working? We do not have a WINS in our network and it uses > default > "lmhosts host wins bcast" name resolve order. I get the same output for any > IP in our > network. Other ppl can see and browse my PC. > > Thanx. > > > > PS: here is the log of the working lookup: > > %nmblookup -d 3 KATWS_PG > Initialising global parameters > params.c:pm_process() - Processing configuration file > "/usr/local/etc/smb.conf" > Processing section "[global]" > added interface ip=210.104.1.133 bcast=210.104.1.255 nmask=255.255.255.0 > bind succeeded on port 0 > Socket opened. > querying KATWS_PG on 210.104.1.255 > Got a positive name query response from 210.104.1.133 ( 210.104.1.133 ) > 210.104.1.133 KATWS_PG<00> > > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 PGP Key: 0x8408D65D ======================================================================