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

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Mon May 2 23:56:10 UTC 2011

On Mon, May 02, 2011 at 05:24:17PM -0600, E. Westbrook wrote:
> A better workaround to recommend would be to use the numeric ipv4 address
> in mysql.txt, since other things will invariably depend on the
> /etc/hosts mapping to ::1.

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

> The preferred "proper" solution, of course, should be for the connecting
> code to fail over to ipv4 (i.e. try ipv6 first, then ipv4) whenever a
> hostname resolves to both ipv6 and ipv4 addresses (whether via /etc/hosts or
> via A and AAAA records in DNS).

Would be nice.

> OpenSSH does it exactly this way and is a good model to follow.
> Should I cross-post this advice to the ticket itself?

Len Sorensen

More information about the mythtv-dev mailing list