Thanks for the pointer. I was able to get it to work.

hosts is being searched first, but adding
trim .localdomain
forced the resolver to try localhost first when requested by gethostbyname because I have
127.0.0.1 localhost.localdomain localhost
in /etc/hosts



Please respond to [email protected]

Sent by: [EMAIL PROTECTED]

To: [email protected]
cc:
Subject: Re: [opendx-users] gethostbyname failure with exec



Do you have host.conf set up to do lookups in the host table before
going out to your dns? Do a man on host.conf for more info.

David

>I am already doing that (i.e., dx -host localhost or specifying
>localhost in the dialog box for connect server in the ui). So,
>that's not the problem.
>
>Thanks.
>
>Please respond to [email protected]
>
>Sent by: [EMAIL PROTECTED]
>
>To: [email protected]
>cc:
>Subject: Re: [opendx-users] gethostbyname failure with exec
>
>
>
>Look at the environment variables. Set DXHOST to localhost. I'm
>pretty sure that should solve your problem.
>
>David
>
>>I have a RH 7.1 system (laptop) using DHCP instead of a fixed ip
>>address. I have installed the OpenDX 4.2 using the rpm provided by
>>Dave Thompson on the binary download site. Efforts to start the exec
>>fail because gethostbyname returned an error (ExHostToFQDN failed).
>>I have localhost specified in /etc/hosts. Explicit specification of
>>localhost or 127.0.0.1 in the hostname for DX also fails with this
>>error. Any suggestions? There is probably an obvious solution and
>>the problem seems vaguely familiar, but this is the first time I
>>have used dynamic ip on Unix. I've not had this problem on dynamic
>>ip on Windows. When the machine is run off the network, the exec is
>>started up just fine and connects to the UI.
>

Reply via email to