[Samba] IPv6 name resolution problem

James Kosin jkosin at intcomgrp.com
Fri Feb 5 12:58:01 MST 2010


On 2/5/2010 1:50 PM, Ernesto Silva wrote:
> 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.
> 
<<--snip-->>
> 
> 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.

Check your /etc/hosts file.  You may have an old IPv4 dotted address there.

James


More information about the samba mailing list