LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-20-2008, 03:04 PM   #1
micksul
LQ Newbie
 
Registered: May 2007
Posts: 9

Rep: Reputation: 0
Question 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.
 
Old 09-21-2008, 08:55 AM   #2
Rob_G_
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
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
 
Old 09-21-2008, 02:18 PM   #3
micksul
LQ Newbie
 
Registered: May 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Rob_G_ View Post
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
 
Old 09-21-2008, 08:53 PM   #4
Rob_G_
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
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.
 
Old 09-22-2008, 03:55 AM   #5
micksul
LQ Newbie
 
Registered: May 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Rob_G_ View Post
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
 
Old 09-22-2008, 11:57 AM   #6
Rob_G_
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
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
 
Old 09-22-2008, 01:22 PM   #7
micksul
LQ Newbie
 
Registered: May 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Rob_G_ View Post
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.
 
Old 09-22-2008, 03:33 PM   #8
Rob_G_
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
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
 
  


Reply

Tags
directory, errors, nmbd, samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
Samba and Active Directory Yig Linux - Networking 2 12-11-2006 11:01 AM
SAMBA and Active Directory Jer1234 Red Hat 1 07-03-2006 04:56 AM
samba ldap winbindd kerberos with active directory errors xtrusion Linux - Software 0 03-21-2005 04:24 PM
Samba in Active Directory bentman78 Linux - General 2 05-06-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration