Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/DNS-query/NewLISP/dns-query.l
Normal file
11
Task/DNS-query/NewLISP/dns-query.l
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(define (dnsLookup site , ipv)
|
||||
;; captures current IPv mode
|
||||
(set 'ipv (net-ipv))
|
||||
;; IPv mode agnostic lookup
|
||||
(println "IPv4: " (begin (net-ipv 4) (net-lookup site)))
|
||||
(println "IPv6: " (begin (net-ipv 6) (net-lookup site)))
|
||||
;; returns newLISP to previous IPv mode
|
||||
(net-ipv ipv)
|
||||
)
|
||||
|
||||
(dnsLookup "www.kame.net")
|
||||
Loading…
Add table
Add a link
Reference in a new issue