LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba - nmbd errors - Active Directory - query_name_response: Multiple (2) responses (https://www.linuxquestions.org/questions/linux-newbie-8/samba-nmbd-errors-active-directory-query_name_response-multiple-2-responses-671270/)

micksul 09-20-2008 03:04 PM

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.

Rob_G_ 09-21-2008 08:55 AM

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

micksul 09-21-2008 02:18 PM

Quote:

Originally Posted by Rob_G_ (Post 3287217)
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

Rob_G_ 09-21-2008 08:53 PM

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

micksul 09-22-2008 03:55 AM

Quote:

Originally Posted by Rob_G_ (Post 3287773)
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

Rob_G_ 09-22-2008 11:57 AM

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

micksul 09-22-2008 01:22 PM

Quote:

Originally Posted by Rob_G_ (Post 3288377)
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?

Rob_G_ 09-22-2008 03:33 PM

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


All times are GMT -5. The time now is 08:41 AM.