Have you tried flushing the local dns cache? (or should the hosts file
already override that?) 

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Seth Grover
Verzonden: woensdag 20 augustus 2008 17:46
Aan: [email protected]
Onderwerp: [Synalist] Lazarus, THTTPSend, and /etc/hosts

I'm noticing something kind of strange, perhaps someone on the list can help
me understand...

I have a little test program (I'm running the latest synapse release,
Lazarus 0.9.25 svn, and FreePascal 2.2.2 under Ubuntu 8.04) which uses a
THTTPSend object to retrieve a web page. Everything works as expected.
However, if I create an entry in /etc/hosts, my program doesn't seem to
honor it. In other words, if www.example.com is actually 1.2.3.4, and I
create an /etc/hosts line which indicates that www.example.com is actually
4.3.2.1, watching the traffic generated by my program I see that it's still
going to 1.2.3.4, even though ping, firefox, etc. all seem to go to 4.3.2.1.

I've compiled a similar test program in Kylix, using the same version of
Synapse, and it does what I expect it to do, which confuses me even more...

Anybody have any ideas?

Thanks,

-SG

========================
Computer over. Virus = very yes.

Seth Grover
sethdgrover[at]gmail[dot]com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.6.6/1621 - Release Date: 19-8-2008
18:53


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to