David C. Rankin
2010-Jan-11 20:12 UTC
[Samba] matchname messages filling logs - howto stop?
Listmates, I have had a few boxes where the 'matchname' message is filling my syslog with one new message ever ~40 seconds or so. No performance problems, just the log annoyance. An example of the messages are: Jan 11 13:43:03 nemesis smbd[2246]: [2010/01/11 13:43:03, 0] lib/util_sock.c:1685(get_peer_name) Jan 11 13:43:03 nemesis smbd[2246]: Matchname failed on Adrienne-PC.rbpllc.com ::ffff:192.168.7.127 Jan 11 13:43:45 nemesis smbd[2247]: [2010/01/11 13:43:45, 0] lib/util_sock.c:1564(matchname) Jan 11 13:43:45 nemesis smbd[2247]: matchname: host name/address mismatch: ::ffff:192.168.7.127 != Adrienne-PC.rbpllc.com Jan 11 13:43:45 nemesis smbd[2247]: [2010/01/11 13:43:45, 0] lib/util_sock.c:1685(get_peer_name) Jan 11 13:43:45 nemesis smbd[2247]: Matchname failed on Adrienne-PC.rbpllc.com ::ffff:192.168.7.127 Jan 11 13:52:22 nemesis smbd[2270]: [2010/01/11 13:52:22, 0] lib/util_sock.c:1564(matchname) Jan 11 13:52:22 nemesis smbd[2270]: matchname: host name/address mismatch: ::ffff:192.168.7.127 != Adrienne-PC.rbpllc.com Jan 11 13:52:22 nemesis smbd[2270]: [2010/01/11 13:52:22, 0] lib/util_sock.c:1685(get_peer_name) Jan 11 13:52:22 nemesis smbd[2270]: Matchname failed on Adrienne-PC.rbpllc.com ::ffff:192.168.7.127 Jan 11 13:53:04 nemesis smbd[2271]: [2010/01/11 13:53:04, 0] lib/util_sock.c:1564(matchname) Jan 11 13:53:04 nemesis smbd[2271]: matchname: host name/address mismatch: ::ffff:192.168.7.127 != Adrienne-PC.rbpllc.com Jan 11 13:53:04 nemesis smbd[2271]: [2010/01/11 13:53:04, 0] lib/util_sock.c:1685(get_peer_name) Jan 11 13:53:04 nemesis smbd[2271]: Matchname failed on Adrienne-PC.rbpllc.com ::ffff:192.168.7.127 Jan 11 13:53:46 nemesis smbd[2272]: [2010/01/11 13:53:46, 0] lib/util_sock.c:1564(matchname) Jan 11 13:53:46 nemesis smbd[2272]: matchname: host name/address mismatch: ::ffff:192.168.7.127 != Adrienne-PC.rbpllc.com Jan 11 13:53:46 nemesis smbd[2272]: [2010/01/11 13:53:46, 0] lib/util_sock.c:1685(get_peer_name) Jan 11 13:53:46 nemesis smbd[2272]: Matchname failed on Adrienne-PC.rbpllc.com ::ffff:192.168.7.127 The message is generated between an XP box and the samba server which is setup in standalone mode. The basic configuration is: [global] workgroup = RB_LAW server string = Samba %v map to guest = Bad User log file = /var/log/samba/log.%m max log size = 100 smb ports = 139 name resolve order = wins lmhosts bcast time server = Yes printcap name = cups disable spoolss = Yes show add printer wizard = No os level = 58 dns proxy = No wins server = 192.168.7.15 admin users = david hosts allow = 192.168.7., 192.168.6., 192.168.8., 192.168.5., 127. [homes] comment = Home Directories read only = No browseable = No browsable = No [samba] comment = Nemesis Law path = /home/samba valid users = @office, anna force group = office read only = No inherit permissions = Yes [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes use client driver = Yes browseable = No browsable = No [print$] path = /var/lib/samba/drivers write list = @adm, root inherit permissions = Yes guest ok = Yes I have had this same problem on several boxes and I haven't been able to chase down the cause. I get that samba is saying that there is a mismatch between the hostname and the address for the IPV6 address ::ffff:192.168.7.127 !Adrienne-PC.rbpllc.com. The problem is I don't know where samba is caching this information or how to prevent samba from considering this box and address to be mismatched. I apologize if this has been asked and answered before, but I haven't had the time to monitor the list on a daily basis as I have had in the past. Could somebody shed some light on how I can solve this problem. I would rather not simply drop the log level to hide the error, I would prefer to fix it. Thanks. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin
2010-Jan-13 19:27 UTC
[Samba] matchname messages filling logs - howto stop?
On 01/11/2010 03:34 PM, ?????? wrote:> Hello, David > >> Jan 11 13:43:45 nemesis smbd[2247]: matchname: host name/address mismatch: >> ::ffff:192.168.7.127 != Adrienne-PC.rbpllc.com > Here is reason by plain English. > Which IP-adress have Adrienne-PC.rbpllc.com? > > Bye. Serg >?????? Thank you for the response. I know there is an IP mismatch. That, I get. What I need your help on is how I tell samba to forget about the old IP address of 192.168.7.127 and learn the correct address for Adrienne-PC? Where is this cached and how do I get rid of it? Samba isn't seeing something correctly. For example, here is the same problem with a machine named reception (in the reception area): Jan 13 12:43:19 nemesis smbd[7449]: Matchname failed on RECEPTION.rbpllc.com ::ffff:192.168.7.150 Jan 13 12:50:46 nemesis smbd[7474]: [2010/01/13 12:50:46, 0] lib/util_sock.c:1564(matchname) Jan 13 12:50:46 nemesis smbd[7474]: matchname: host name/address mismatch: ::ffff:192.168.7.150 != RECEPTION.rbpllc.com Jan 13 12:50:46 nemesis smbd[7474]: [2010/01/13 12:50:46, 0] lib/util_sock.c:1685(get_peer_name) Jan 13 12:50:46 nemesis smbd[7474]: Matchname failed on RECEPTION.rbpllc.com ::ffff:192.168.7.150 Samba is saying there is a mismatch between reception and the IP of 192.168.7.150 -- but that is WRONG! 13:19 nemesis:~> ping reception PING reception.rbpllc.com (192.168.7.150) 56(84) bytes of data. 64 bytes from RECEPTION.rbpllc.com (192.168.7.150): icmp_seq=1 ttl=128 time=3.16 ms 64 bytes from RECEPTION.rbpllc.com (192.168.7.150): icmp_seq=2 ttl=128 time=0.311 ms 64 bytes from RECEPTION.rbpllc.com (192.168.7.150): icmp_seq=3 ttl=128 time=0.309 ms ^C --- reception.rbpllc.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.309/1.262/3.166/1.346 ms Here is the dns entry: [13:23 nemesis:/home/david] # sdns $ORIGIN . $TTL 172800 ; 2 days rbpllc.com IN SOA bonza.rbpllc.com. root.bonza.rbpllc.com. ( 2009122700 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 604800 ; expire (1 week) 86400 ; minimum (1 day) ) NS bonza.rbpllc.com. NS nemesis.rbpllc.com. MX 0 bonza.rbpllc.com. $ORIGIN rbpllc.com. <snip> rankin-p35a A 192.168.7.101 $TTL 14400 ; 4 hours RECEPTION A 192.168.7.150 TXT "31070f4d9f3c8435ddf3a0641b740d7fdd" <snip> and the reverse: [13:23 nemesis:/home/david] # cat /var/lib/named/dyn/192.168.7.zone $ORIGIN . $TTL 172800 ; 2 days 7.168.192.in-addr.arpa IN SOA bonza.rbpllc.com. root.bonza.rbpllc.com. ( 2009122700 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 604800 ; expire (1 week) 86400 ; minimum (1 day) ) NS bonza.rbpllc.com. NS nemesis.rbpllc.com. $ORIGIN 7.168.192.in-addr.arpa. 101 PTR rankin-p35a.rbpllc.com. <snip> $TTL 14400 ; 4 hours 150 PTR RECEPTION.rbpllc.com. So why is there a mismatch error filling my logs? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com