From: Tom H on
On Fri, Aug 13, 2010 at 11:45 AM, Roger Lynn <Roger(a)> wrote:
> Since upgrading from etch to lenny when it came out, all my Samba logs have
> been full of lines like:
> [2010/08/13 15:07:11,  0] lib/util_sock.c:matchname(1749)
>  matchname: host name/address mismatch: ::ffff: != localhost
> [2010/08/13 15:07:11,  0] lib/util_sock.c:get_peer_name(1870)
>  Matchname failed on localhost ::ffff:
> As accessing files from Windows clients still works I've been able to work
> around it, so I've ignored it, but now I think it's preventing me from
> adding printers. There are lots of similar reports around, but I can't find
> any solutions. I am using only Debian Lenny packages with security updates
> and proposed updates. I am using dnsmasq for DNS. My smb.conf file is below.
> I have not knowingly done any customisation or configuration relating to IPv6.
> Is this a bug in my configuration, samba or somewhere else, possibly dnsmasq?
> Obviously this is IPv6 related. As I can't find any way of disabling IPv6 in
> Samba, the simplest solution appears to be to disable IPv6 on the entire
> machine. Has anyone got any better suggestions?

A possible hack: add the hybrid (or whatever it is actually called)
"::ffff:" ipv6 address to the "hosts allow" line.

You might be able to disable ipv6 just for samba by adding
bind interfaces only = yes
interfaces = host_ip_address
to smb.conf

To UNSUBSCRIBE, email to debian-user-REQUEST(a)
with a subject of "unsubscribe". Trouble? Contact listmaster(a)