Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a linux box using Samba with Active directory for authentication to access the shares on the linux box.
I am seeing the following errors being streamed over and over in the messages log on the linux box.
Does anyone know what they mean and how to troubleshoot them?
Sep 01 15:22:14 adserverCorp nmbd[12692]: [2008/09/16 15:22:14, 0] nmbd/nmbd_namequery.c:query_name_response(109)
Sep 01 15:22:14 adserverCorp nmbd[12692]: query_name_response: Multiple (2) responses received for a query on subnet 10.92.216.6 for name CORP<1d>.
Sep 01 15:22:14 adserverCorp nmbd[12692]: This response was from IP 10.85.190.160, reporting an IP address of 10.85.190.160.
Sep 01 15:22:16 adserverCorp nmbd[12692]: [2008/09/16 15:22:14, 0] nmbd/nmbd_namequery.c:query_name_response(109)
Sep 01 15:22:16 adserverCorp nmbd[12692]: query_name_response: Multiple (3) responses received for a query on subnet 10.92.216.6 for name CORP<1d>.
Sep 01 15:22:16 adserverCorp nmbd[12692]: This response was from IP 10.85.190.160, reporting an IP address of 10.85.190.160.
10.85.190.160 (adserverCorp) is the Active Directory Server.
10.92.216.6 is the IP of the Linux Box.
I notice that if I use nmblookup on the hostname of the ADServer, it goes to 10.255.0.3?
Why would that be?
linuxhost:/var/log/samba # nmblookup adserverCorp.corp.int
querying adserverCorp.corp.int on 10.255.0.3
querying adserverCorp.corp.int on 10.85.118.63
name_query failed to find name adserverCorp.corp.int
Check your WINS configurations in the smb.conf file. The default resolv order is lmhosts,hosts,wins,broadcast. If it tries to go to 10.255.0.3, it is configured somewhere
Second, we need to understand that adservercorp.corp.int is a DNS name and not a NetBIOS name. What happens when you query the same name using nslookup? also try "nmblookup adservercorp" and see if it reports the proper IP.
Check your WINS configurations in the smb.conf file. The default resolv order is lmhosts,hosts,wins,broadcast. If it tries to go to 10.255.0.3, it is configured somewhere
Second, we need to understand that adservercorp.corp.int is a DNS name and not a NetBIOS name. What happens when you query the same name using nslookup? also try "nmblookup adservercorp" and see if it reports the proper IP.
Ping returns what?
Hope this helps,
..Rob
Thanks Rob.
I don't have access to the box now but I have the smb file and I do not have any instance of that IP address in the smb.conf file. Could it be in /etc/hosts? Or any other files I should be checking?
Forward and reverse NS lookup on the on the adserver IP and hostname works fine.
yes, it can be in any of the name resolution chain. (lmhosts,hosts,wins)
DNS seems OK from your queries.
Hummm! As for the other files, Samba does not use any other files for name resolution. Correct me if I'm wrong...
Check the hosts and lmhosts files and the WINS DB. if it is not there, you can flush the NetBIOS cache on the samba server by restarting the nmbd process. hopefully, you will resolve the problem at this point.
If you have more then one WINS server, they will all need to be checked. (replication).
Forgot to ask, what is you network broadcast address?
yes, it can be in any of the name resolution chain. (lmhosts,hosts,wins)
DNS seems OK from your queries.
Hummm! As for the other files, Samba does not use any other files for name resolution. Correct me if I'm wrong...
Check the hosts and lmhosts files and the WINS DB. if it is not there, you can flush the NetBIOS cache on the samba server by restarting the nmbd process. hopefully, you will resolve the problem at this point.
If you have more then one WINS server, they will all need to be checked. (replication).
Forgot to ask, what is you network broadcast address?
ciao
..Rob
hosts and lmhosts files look OK, where can I find the WINS DB?
linuxhost:/etc/samba # pwd
/etc/samba
linuxhost:/etc/samba # cat lmhosts
# This file provides the same function that the lmhosts file does for
# Windows. It's another way to map netbios names to ip addresses.
#
# See section 'name resolve order' in the manual page of smb.conf for
# more information.
127.0.0.1 localhost
I think you might be getting somewhere with the broadcast address!
I have an interface card (eth1) that is not connected physically but the broadcast address is 10.255.0.3, any idea why an nmblookup would query this interface?
linuxhost:/var/log # ifconfig
eth1 Link encap:Ethernet HWaddr X:X:X:X:X:X
inet addr:10.255.0.1 Bcast:10.255.0.3 Mask:255.255.255.252
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0xd100 Memory:d0120000-d0140000
samba will broadcast as a last option. The smb.conf file lists the interfaces it listens to.
Look for the line: "interfaces="
You will need to keep 127.0.0.1 and eth0 and remove eth1 which is disconnected. restart nmbd.
BTW, WINS DB is the wins server running on windows server OS... You can get to it by opening the administrative tools > WINS or open a new mmc and add WINS. To do this, you will need the adminpack installed.
samba will broadcast as a last option. The smb.conf file lists the interfaces it listens to.
Look for the line: "interfaces="
You will need to keep 127.0.0.1 and eth0 and remove eth1 which is disconnected. restart nmbd.
BTW, WINS DB is the wins server running on windows server OS... You can get to it by opening the administrative tools > WINS or open a new mmc and add WINS. To do this, you will need the adminpack installed.
Good show!
Thx
..Rob
Cheers Rob, getting there slowly.
The thing is my Samba file does not define any interfaces?
Is there any other file (s) that samba would be taking this info from.
Maybe I could just add the "interfaces=" with eth0 and loopback into the smb file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.