unknown server error

nita lohia nitalohia at yahoo.co.in
Thu Sep 6 11:36:33 UTC 2007


Hello
   
  here is full discription:
   
  #include<stdio.h>
#include<netdb.h>
int main()
{
 struct hostenv *hp;
 char host[120];
 if(gethostname(host,sizeof(host))<0)
  return -1;
 printf("host:%s\n",host);
 if(hp=gethostbyname(host)==NULL)
  {
   printf("%s",hstrerror(h_errno));
   return -1;
  }
 printf("hello");
 return 0;
  }
  O/p : 
host:SetuVFX88L
Unknown server error
   
  files
   
  /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.104 SetuVFX88L
   
  /etc/host.conf
order host,bind
multi on
   
  /etc/networks
NETWORKING=yes
HOSTNAME=SetuVFX88L
   
  /etc/resolv.conf
nameserver 192.168.1.104
   
  /etc/nsswitch.conf
hosts:     files dns
   
  i m using busybox and arm-linux.......
   
  ping SetuVFX88L
  hostname -i
  working fine.......
   
  can any one help me ?
   
   

       
---------------------------------
 DELETE button is history. Unlimited mail storage is just a click away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070906/446fe87c/attachment-0002.htm 


More information about the busybox mailing list