* Matt Perry ([EMAIL PROTECTED]) [041230 01:30]:
From reading the man page for gethostbyname(3) I see that I can set
the environment variable HOSTALIASES to point to a file with local
aliases. When I do that, it doesn't seem to be working.
$ cat hostalias
deb ftp.debian.org
$ export HOSTALIASES=$HOME/hostalias
$ ftp deb
ftp: deb: Name or service not known
Has anyone gotten HOSTALIASES to work properly? I'm running sarge.
Works for me here:
[EMAIL PROTECTED]:~$ echo foo google.com hostalias
[EMAIL PROTECTED]:~$ export HOSTALIASES=$HOME/hostalias
[EMAIL PROTECTED]:~$ echo GET / HTTP/1.0
^M
^M | nc foo 80 | head
HTTP/1.0 200 OK
Cache-Control: private
Content-Type: text/html
Set-Cookie:
PREF=ID=03c0d2281eda6f75:TM=1104402356:LM=1104402356:S=jkhUw7L5KYF4vGXQ;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
Server: GWS/2.1
Date: Thu, 30 Dec 2004 10:25:56 GMT
Connection: Close
htmlheadmeta http-equiv=content-type content=text/html;
charset=ISO-8859-1titleGoogle/titlestyle!--
body,td,a,p,.h{font-family:arial,sans-serif;}
[EMAIL PROTECTED]:~$
try strace to see what ftp is doing wrong. My ftp does the right thing,
too.
good times,
Vineet
--
http://www.doorstop.net/
--
If Haydn had patented a symphony, characterised by that sound is produced
[ in extended sonata form ], Mozart would have been in trouble.
http://swpat.ffii.org
signature.asc
Description: Digital signature