[mythtv] allow DNS names as well as IP addresses in server setup

Eric Cooper ecc at cmu.edu
Sun Mar 6 02:07:49 UTC 2005


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.

-- 
Eric Cooper             e c c @ c m u . e d u


More information about the mythtv-dev mailing list