User Tools

Site Tools


querying_20the_20dns

Differences

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

Link to this comparison view

querying_20the_20dns [2018/03/31 13:19]
127.0.0.1 external edit
querying_20the_20dns [2018/04/17 18:20] (current)
tbest3112 Added syntax highlighting
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.txt ยท Last modified: 2018/04/17 18:20 by tbest3112