[mythtv] allow DNS names as well as IP addresses in server setup
ijr at case.edu
Sun Mar 6 02:14:10 UTC 2005
On Saturday 05 March 2005 09:07 pm, Eric Cooper wrote:
> On Sat, Mar 05, 2005 at 09:01:15PM -0500, Isaac Richards wrote:
> > On Saturday 05 March 2005 06:33 pm, Anduin Withers wrote:
> > > > The following patch allows you to put in either hostnames or IP
> > > > addresses in the BackendServerIP and MasterServerIP fields.
> > > > I've only minimally tested it, but it seems to work in my setup.
> > >
> > > 4. You might want to push it through inet_aton first, only when it is
> > > invalid push it to gethostbyname (instead of defaulting to a lookup and
> > > falling back).
> > Or just use the Qt DNS classes.
> I looked at that, but version 3 Qt only has asynchronous DNS lookups
> that would require a more global change -- it was much less invasive
> to use C's gethostbyname. The version 4 Qt DNS class has a
> synchronous call that would be cleaner.
It's rather easy to make it synchronous. gethostbyname2 isn't portable.
More information about the mythtv-dev