Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-20-2008, 03:04 PM
|
#1
|
|
LQ Newbie
Registered: May 2007
Posts: 9
Rep:
|
Samba - nmbd errors - Active Directory - query_name_response: Multiple (2) responses
Hi,
I am new to Samba/nmdb/NetBIOS.
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
Any thoughts are welcome. Thanks in advance.
Last edited by micksul; 09-20-2008 at 03:14 PM.
|
|
|
|
09-21-2008, 08:55 AM
|
#2
|
|
LQ Newbie
Registered: Aug 2008
Posts: 7
Rep:
|
Hi,
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
|
|
|
|
09-21-2008, 02:18 PM
|
#3
|
|
LQ Newbie
Registered: May 2007
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by Rob_G_
Hi,
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.
Cheers,
Mick
|
|
|
|
09-21-2008, 08:53 PM
|
#4
|
|
LQ Newbie
Registered: Aug 2008
Posts: 7
Rep:
|
Hi Mick,
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
Last edited by Rob_G_; 09-21-2008 at 08:56 PM.
|
|
|
|
09-22-2008, 03:55 AM
|
#5
|
|
LQ Newbie
Registered: May 2007
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by Rob_G_
Hi Mick,
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
|
|
|
|
09-22-2008, 11:57 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2008
Posts: 7
Rep:
|
Hey!
Yap, you found your problem.
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
|
|
|
|
09-22-2008, 01:22 PM
|
#7
|
|
LQ Newbie
Registered: May 2007
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by Rob_G_
Hey!
Yap, you found your problem.
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?
Last edited by micksul; 09-22-2008 at 02:21 PM.
|
|
|
|
09-22-2008, 03:33 PM
|
#8
|
|
LQ Newbie
Registered: Aug 2008
Posts: 7
Rep:
|
If your file does not include it, sure go ahead.
syntax is
interfaces = 127.0.0.1/8 eth0
and it needs to be under the global tag. [Global]
happy to see you are getting there
..Rob
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:07 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|