[mythtv] [mythtv-commits] Ticket #9756: DBHostName=localhost causes MythSocket to attempt to contact mysql on ::1 (ipv6 localhost)

E. Westbrook mythtv-dev at westbrook.com
Tue May 3 15:12:35 UTC 2011


On Mon, May 2, 2011 at 17:56, Lennart Sorensen <lsorense at csclub.uwaterloo.ca
> wrote:

> I thought it was common to have 127.0.0.1 for localhost and ::1 for
> localhost6.  Maybe some people don't do things sensibly.
>

For the benefit of the archive, I'll assume your meaning and say you're
absolutely right -- localhost6 is very silly indeed.

Anyone is free to use it, of course, but it shouldn't be advocated, and it
isn't present in contemporary stock hosts files.  The right idea,
ostensibly, is for the same hostname to get you to the right place,
transparently to the user.

More to the point, the obligation isn't on the user to configure it right --
it's on the applications to support it right.  Tricks like localhost6
actually *prevent* good applications from doing the right thing.
Thankfully, this is only an /etc/hosts issue, since an ipv6-ignorant
application will never ask for (and therefore never receive) an AAAA record
from DNS.

So, better to tell the ipv6-ignorant application to use ipv4 numerically,
say in mysql.txt, than to tell the whole system wrongly that localhost is
only on ipv4 in /etc/hosts.

Anyway, we'll all get there, eventually -- even if it takes until about
2025, at the current rate. ;)

(Off-topic rant: People are going to keep squeezing every last drop out of
ipv4 for years to come, with all sorts of chicanery and nonsense in the face
of RIR and IANA exhaustion.  This is due to the unfortunate design
consequences of ipv6 -- while anyone can turn on ipv6, and absolutely
should, no one can *entirely* shut off ipv4 until *everyone* can.)

$0.02,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-dev/attachments/20110503/0557cb93/attachment.html 


More information about the mythtv-dev mailing list