Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-02

Better/full internet-support in FPC on Linux?

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Hantsch

Hello!

Some time ago I tried to write a program which should work with nameservers to check if forward and reverse lookup give the same result. Should basically do the same what "host" and/or "nslookup" can do, but be implemented so that I do not have to execute external programs all the time.

But I realized that inetd is not able to work with nameservers well enough.

Is there an extended inet unit available, including nameserver support? Should be a 1:1 replacement for the old inet unit of fpc 1.0.4, because I am still using 1.0.4 (newer versions do not work correctly on old old 2.0.33 systems like SuSE 5.2/5.3, but this is a MUST for me).

mfg

Ing. Rainer Hantsch

.---------------------------------------------------------------------. | \\|// Ing. Rainer HANTSCH - Hardware + Software | | (o o) Service - Support - WEB-Design und Programmierung | |--oOOo-(_)-oOOo------------------------------------------------------| | Ing. Rainer HANTSCH | mail: | | Khunngasse 21/20 | www: http://www.hantsch.co.at | | A-1030 Vienna | tel: +43-1-79885380 fax: +43-1-798853818 | | ** A u s t r i a ** | handy: +43-664-9194382 UID-Nr: ATU 11134002 | '---------------------------------------------------------------------'
Lukas Gebauer
to Rainer Hantsch
Show quoted text 15 lines
Some time ago I tried to write a program which should work with nameservers to check if forward and reverse lookup give the same result. Should basically do the same what "host" and/or "nslookup" can do, but be implemented so that I do not have to execute external programs all the time. But I realized that inetd is not able to work with nameservers well enough. Is there an extended inet unit available, including nameserver support? Should be a 1:1 replacement for the old inet unit of fpc 1.0.4, because I am still using 1.0.4 (newer versions do not work correctly on old old 2.0.33 systems like SuSE 5.2/5.3, but this is a MUST for me).

You can take a look to my Synapse. In you case take a look for dnssend.pas unit. ;-)

Lukas Gebauer. E-mail: http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.
Crabtree, Chad

-----Original Message-----

Earlier message 32 lines
From: Rainer Hantsch Sent: Thursday, February 26, 2004 1:57 AM To: Free Pascal Group Subject: [fpc-pascal]Better/full internet-support in FPC on Linux? Hello! Some time ago I tried to write a program which should work with nameservers to check if forward and reverse lookup give the same result. Should basically do the same what "host" and/or "nslookup" can do, but be implemented so that I do not have to execute external programs all the time. But I realized that inetd is not able to work with nameservers well enough. Well there is always libCurl. I've looked this over and it looks quite thourough check it out. ------------------------------------------------------------------------------------------- ***National City made the following annotations ------------------------------------------------------------------------------------------- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. ===========================================================================================
Jeff Pohlmeyer
Well there is always libCurl. I've looked this over and it looks quite thourough check it out.

LibCurl doesn't expose it's DNS functions directly.

Earlier versions use basically the same system calls as your pascal program would. However, the more recent versions of libcurl have a compile-time option to link against the ARES library, which allows it to perform the lookups asynchronously.

It is also possible to call ARES directly from Free Pascal, here is an example:
http://houston.quik.com/jkp/ares_pas.pp

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools