User Tools

Site Tools


querying_20the_20dns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
querying_20the_20dns [2018/03/31 13:19] – external edit 127.0.0.1querying_20the_20dns [2024/01/05 00:21] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, October 2013//\\ \\  The code below allows you to query the DNS to find the IP address(es) corresponding to a specified URL:\\ \\  //by Richard Russell, October 2013//\\ \\  The code below allows you to query the DNS to find the IP address(es) corresponding to a specified URL:\\ \\ 
 +<code bb4w>
         SYS "LoadLibrary", "dnsapi.dll" TO dnsapi%         SYS "LoadLibrary", "dnsapi.dll" TO dnsapi%
         SYS "GetProcAddress", dnsapi%, "DnsQuery_A" TO `DnsQuery`         SYS "GetProcAddress", dnsapi%, "DnsQuery_A" TO `DnsQuery`
Line 31: Line 32:
         = STR$(addr% AND 255) + "." + STR$(addr% >>> 8 AND 255) + "." + \         = STR$(addr% AND 255) + "." + STR$(addr% >>> 8 AND 255) + "." + \
         \ STR$(addr% >>> 16 AND 255) + "." + STR$(addr% >>> 24 AND 255)         \ STR$(addr% >>> 16 AND 255) + "." + STR$(addr% >>> 24 AND 255)
 +</code>
querying_20the_20dns.1522502375.txt.gz · Last modified: 2024/01/05 00:16 (external edit)