Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
24
Task/DNS-query/FutureBasic/dns-query-2.basic
Normal file
24
Task/DNS-query/FutureBasic/dns-query-2.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