From: David C. Rankin on
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba