[Samba] IPv6 name resolution problem

Ernesto Silva erniesilva at gmail.com
Fri Feb 5 11:40:40 MST 2010


Hi, I'm trying to set up a small network over IPv6. It will have IPv4 too
but the dhcp server may not work and Ubuntu (9.04) automatically configure a
.local domain IPv6 addresses, so I must run the samba server and clients
over IPv6.

Only one machine will act as a server, but samba is up and running in all of
them.

The problem is that smbclient can't resolve the server's name, my probes
from the client follows:

ping6 -Ieth0 ipv6_server_address   works fine
smbclient -L ::1       works fine
smbclient -L ipv6_client_address       works fine
smbclient -L client_name.local     fails with NT_STATUS_BAD_NETWORK_NAME

smbclient -L ipv6_server_address     fails with NT_STATUS_INVALID_HANDLE
smbclient -L server_name.local      fails with NT_STATUS_BAD_NETWORK_NAME

As I mentioned both client and server IPv6 addresses are in local scope:
fe80:0:0:0:x:x:x:x/64

I'm also using avahi-daemon with IPv6 enabled and my nsswitch.conf host's
line is:

hosts:          files mdns_minimal [NOTFOUND=return] mdns dns

An strace reveals this:  RESOLVE-HOSTNAME-IPV4, but not IPV6 apparently.

Any ideas?
Best regards,
Ernesto.


More information about the samba mailing list