[Icecast-dev] hostname resolution in libshout
giles at thaumas.net
Mon Nov 17 09:59:50 PST 2014
On 2014-11-17 7:55 AM, RJ Ryan wrote:
> They are requesting that libshout "fall back" on the ipv4 resolution of
> the hostname if the ipv6 version fails to connect.
Binding only ipv4 on an dual-stack server is a deployment bug, but
libshout should fall back when running on a dual-stack client, as they
say. Please do file a bug.
I believe RFC 6555 describes the current best practice for this: clients
should probe over both protocols when dns returns both ipv6 and ipv4
addresses and use whichever to work around breakage like this (which can
occur at intermediate routers as well as at servers).
The http module in the opusfile library has an implementation of this if
you want code to borrow.
More information about the Icecast-dev