Skip to content

Bouke/DNS-Example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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