The ipv6-literal.net domain is used by Vista and Longhorn to allow for the entry of IPv6 addresses into UNCs rather than host names. Any domain name in this domain is not passed to DNS but is resolved by taking the host portion and converting it into an IPv6 address. For example: 3000:0:20::1 would be represented by 3000-0-20--1.ipv6-literal.net. The Samba resolver needs to be modified to support this behaviour. Let me know if you need any more info or if I can help with testing.
Shouldn't this be in the (g)libc resolver?
I don't think so. Here are my reasons: 1) It isn't a published standard so putting in the resolver is probably a bad idea. 2) The namespace is owned by Microsoft. Since it is a Microsoft specific solution that is not yet standardised. I think it is more appropriate that Samba should deal with this from a interoperability perspective.
One thing I didn't mention before is that you can also encode the interface identifier in the ipv6-literal.net address. This is useful for link local addresses. For example fe80::10%4 can be written as the UNC or domain name fe80--10s4.ipv6-literal.net
I think we should use this only in the places where we actually use UNC names, not in the regular resolver. This demonstrates we need a generic UNC parser, which we don't appear to have at the moment.
Marking as "Feature request"
*** Bug 4571 has been marked as a duplicate of this bug. ***
I don't see where Samba need this actually. Can you give a concrete example, where *samba* needs to handle ipv6-literal.net names? Looks more like a client only issue. *maybe* cifs vfs and friends might be interested in it, but even there I don't see a real need for it.
(In reply to comment #7) > I don't see where Samba need this actually. Can you give a concrete example, > where *samba* needs to handle ipv6-literal.net names? Looks more like a client > only issue. *maybe* cifs vfs and friends might be interested in it, but even > there I don't see a real need for it. Agreed. This has been addressed by an NSS module written by Simo. This bug can be closed.
ah great, didn't know that. Here's the link: http://www.samba.org/~idra/code/nss-ipv6literal/