Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
24
Task/DNS-query/FutureBasic/dns-query.basic
Normal file
24
Task/DNS-query/FutureBasic/dns-query.basic
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Str255 UnixCommand
|
||||
Str255 UnixResponse
|
||||
|
||||
print "DNS IPv4 resolved for www.kame.net:"
|
||||
UnixCommand = "nslookup -querytype=A www.kame.net"
|
||||
open "UNIX", 1, UnixCommand
|
||||
while ( not eof( 1 ) )
|
||||
input #1, UnixResponse
|
||||
print UnixResponse
|
||||
wend
|
||||
close 1
|
||||
|
||||
print ""
|
||||
|
||||
print "DNS IPv6 resolved for www.kame.net:"
|
||||
UnixCommand = "nslookup -querytype=AAAA www.kame.net"
|
||||
open "UNIX", 1, UnixCommand
|
||||
while ( not eof( 1 ) )
|
||||
input #1, UnixResponse
|
||||
print UnixResponse
|
||||
wend
|
||||
close 1
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue