On Sat, Feb 14, 2004 at 09:01:35PM -0200, [EMAIL PROTECTED] wrote:
> On Sat, Feb 14, 2004 at 04:44:18PM +0100, Spider wrote:
> > On Sat, 14 Feb 2004 07:53:58 -0200
> > [EMAIL PROTECTED] wrote:
> > 
> > > I have noip-updater in my system, but it is failling to
> > > update my ip at the no-ip.com. I found the following
> > > error message in /var/log/messages:
> > > 
> > > Feb 14 07:52:33 gentoo noip2[14952]: Can't gethostbyname for
> > > dynupdate.no-ip.com
> > > 
> > > It seems that gethostbyname is not working. Any reason
> > > for that?
> > > 
> > > Any help?
> > 
> > Check that you have a working nameserver,  ( /etc/resolv.conf ).
> > 
> > "host slashdot.org" ,  if that doesn't return a good IP, you prolly need
> > to fix your dns server.  if that works, try "host dynupdate.no-ip.com" 
> > might be a fluke on their nameserver-resolve.
> 
> # hostx slashdot.org
> slashdot.org            A       66.35.250.150
> 
> # hostx dynupdate.no-ip.com
> dynupdate.no-ip.com     A       63.215.241.204
> 
> So I am getting a good IP. But noip2 is still giving me
> the error message in /var/log/messages.
> 
> I updated to the latest noip updater sources, but the
> error persists?

I have written a small C program to check the gethostbyname
function and got a similar error. The program is attached.

Any comment?

Romildo
#include <stdio.h>
#include <netdb.h>

int main(void)
{
   struct hostent * h;

   h = gethostbyname("www.redhat.com");

   herror("ERROR FOUND: ");

   printf("name     = %s\n", h->h_name);
   printf("addrtype = %i\n", h->h_addrtype);
   printf("length   = %i\n", h->h_length);
   printf("addr     = %s\n", h->h_addr_list[0]);

   return 0;
}

--
[EMAIL PROTECTED] mailing list

Reply via email to