Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/DNS-query/Delphi/dns-query.delphi
Normal file
21
Task/DNS-query/Delphi/dns-query.delphi
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
program DNSQuerying;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses
|
||||
IdGlobal, IdStackWindows;
|
||||
|
||||
const
|
||||
DOMAIN_NAME = 'www.kame.net';
|
||||
var
|
||||
lStack: TIdStackWindows;
|
||||
begin
|
||||
lStack := TIdStackWindows.Create;
|
||||
try
|
||||
Writeln(DOMAIN_NAME);
|
||||
Writeln('IPv4: ' + lStack.ResolveHost(DOMAIN_NAME));
|
||||
Writeln('IPv6: ' + lStack.ResolveHost(DOMAIN_NAME, Id_IPv6));
|
||||
finally
|
||||
lStack.Free;
|
||||
end;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue