[fpc-pascal]INET-Unit: Testing existence of a domain?

Michael Weinert weinert at sys2.de
Wed Sep 17 12:51:31 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 17. September 2003 11:54 schrieb Rainer Hantsch:

Hi Rainer,

> I want to test inside my program if a domain does exist. I am not
> interested in the particular domain entries, only in its existence.
> For that I tried the following, but it returns always false:
Maybe I have a solution for you.
Just check for an NS-Entry for the domain. This way you know if
the domains exists or not.
How I would do it?
I sended a resolv-unit to the units-list. I would then double the
function Sys2_GetMXAddr (tz:ShortString):ShortString;
to make a getnsaddr and you have a result.

Are you trying to program a spam-blocker or something like that?
If yes, I would be interested in helping.

Michael.

- -- 


                     SysQuadrat
    Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  weinert at sys2.de
           KeyServer hkp://pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP2g8t6vpi4/XslceAQKcqwx+Leknc0FjwqcaOCtqvrTcXb1LJFHAz0r/
NtqENP8fnLkdSAF/pqLsfPKoA1yHR3phfZrwSmkqcBg2qZQDI8iS0nVx4crecAzF
LjZpRDOKtDuJtT91KQaCBEqUbGNkBU5ucRD7FaJD9KHiCVK7oaqdZ0wsQJ+xFxBJ
QBBKhiShK45Nh7JBGIgZKYOLY1nPLGRkXBE7VkCyCb6F2HGckdeDY5u4aJb35Q9J
7KLphq/hb/jlzAK8/Zt+2o7GnsaZOlU9/yHNLoASfg8gozbiOvuEt2YZ0sb8sFaa
IO1l4LNJObPyubpsqQT8Y/o7m/j43WhI3uPR1HxzWaob94hod0/kKm4L9cVe4zgZ
B4Y7azrgQs/w/7CL+WqdDcctybJ67Ai8wzC7+9MpbTUoDZ6ZYe0SFDc3hh0ImLKO
537R+Nrs9AS6hPGhWaheeOTf6sJBUQJ66Whxt1rE6Nk7rlCvF/uD9uSKtfBCgKX5
vmn8T14pRxpouOrJ5uNhDqiIzaxpVyRIyk8gmj7/a7AAsIptmBHMkQ==
=jo0n
-----END PGP SIGNATURE-----





More information about the fpc-pascal mailing list