Skip to content

Bouke/DNS-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Example

Examples for the DNS library.

Build Status

Usage

$ swift build
$ .build/debug/dns-client 192.168.0.1 apple.com.

;; Got answer:
;; ->>HEADER<<- opcode: query, status: NOERROR, id: 8437
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;apple.com.                     IN      A

;; ANSWERS SECTION:
apple.com.              2937    IN      A       17.172.224.47
apple.com.              2937    IN      A       17.178.96.59
apple.com.              2937    IN      A       17.142.160.59

;; Query time: 4 msec
;; SERVER: 10.0.1.1:53
;; WHEN: 2017-05-31 19:44:41 +0000
;; MSG SIZE  rcvd: 75

Credits

This example was written by Bouke Haarsma.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages