From: Qq Zz Date: 2009-05-14T19:46:51+09:00 Subject: Re: the question about getaddinfo Brian Candler wrote: > Qq Zz wrote: >> I use getaddinfo to get A machine's hostname, >> in B machine,the result is correct. >> but in A machine,the result is just A machine's name >> I use nslookup,the result is also correct. >> who can tell me why in A machine,the result is wrong? > > You don't even say what platform you're on. If you're on a Unix-like > platform, then maybe you have something like > > 1.2.3.4 machineA machineA.com > > in /etc/hosts. no,windows vista -- Posted via http://www.ruby-forum.com/.