<div><STRONG>Hello</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>here is full discription:</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>#include<stdio.h><BR>#include<netdb.h><BR>int main()<BR>{<BR> struct hostenv *hp;<BR> char host[120];<BR> if(gethostname(host,sizeof(host))<0)<BR> return -1;<BR> printf("host:%s\n",host);<BR> if(hp=gethostbyname(host)==NULL)<BR> {<BR> printf("%s",hstrerror(h_errno));<BR> return -1;<BR> }<BR> printf("hello");<BR> return 0;</STRONG></div> <div><STRONG>}</STRONG></div> <div><STRONG>O/p : <BR>host:SetuVFX88L<BR>Unknown server error</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>files</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>/etc/hosts<BR>127.0.0.1 localhost.localdomain localhost<BR>192.168.1.104 SetuVFX88L</STRONG></div>
<div><STRONG></STRONG> </div> <div><STRONG>/etc/host.conf<BR>order host,bind<BR>multi on</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>/etc/networks<BR>NETWORKING=yes<BR>HOSTNAME=SetuVFX88L</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>/etc/resolv.conf<BR>nameserver 192.168.1.104</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>/etc/nsswitch.conf<BR>hosts: files dns</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>i m using busybox and arm-linux.......</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>ping SetuVFX88L</STRONG></div> <div><STRONG>hostname -i</STRONG></div> <div><STRONG>working fine.......</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG>can any one help me ?</STRONG></div> <div><STRONG></STRONG> </div> <div><STRONG></STRONG> </div><p> 
<!--6--><hr size=1></hr> DELETE button is history. Unlimited mail storage is <a href="http://in.rd.yahoo.com/tagline_mail_6/*https://edit.india.yahoo.com/config/eval_register">just a click away.</a>