How to obtain multiple IP addresses from one host name by using the IdDNSResolver.

Copyright (C) 2005 Fumio Kawamata.

Created on November 3, 2005. Last modified on December 29, 2005.

I can obtain one IP address from one hostname as below.

    IPAddress:=GStack.ResolveHost(HostName, ID_DEFAULT_IP_VERSION);

Some host returns multiple IP addresses as below.


    Non-authoritative answer:

I did not know how I can obtain multiple IP addresses from one hostname. So, I asked at the atozedsoftware.indy.general newsgroup,, and I could get the answer how to do that.

I have prepared this web page for the person who do not know how to do that yet. I hope this web page will help someone.

I used:
- Windows XP Professional Service Pack 2 (Japanese version)
- Delphi 6 Professional Update Pack 2 (Japanese version)
- Indy Version 10.0.52.

Source code of main unit(text file)

Archive file (Executable file and whole source codes) [Download file] (300,865 bytes)

Snap shot of the prgram

[Snap shot of DNSResolver.exe]

[Open Laboratory]