| ... | ... |
@@ -0,0 +1,32 @@ |
| 1 |
+# tinydns |
|
| 2 |
+Single file DNS client which can process A, AAAA, CNAME and MX records |
|
| 3 |
+ |
|
| 4 |
+# Dependencies for Xplatform |
|
| 5 |
+ |
|
| 6 |
+sudo apt install gcc-arm-linux-gnueabi \ |
|
| 7 |
+ g++-arm-linux-gnueabi \ |
|
| 8 |
+ gcc-arm-linux-gnueabihf \ |
|
| 9 |
+ g++-arm-linux-gnueabihf |
|
| 10 |
+ |
|
| 11 |
+ |
|
| 12 |
+Building with cosmocc assumes cosmocc directory is $HOME/cosmocc |
|
| 13 |
+ |
|
| 14 |
+# Usage |
|
| 15 |
+``` |
|
| 16 |
+./tinydns -h 1.1.1.1 -p 53 -q A --time google.com |
|
| 17 |
+``` |
|
| 18 |
+ |
|
| 19 |
+# Output format for timed queries |
|
| 20 |
+The ouput is a CSV line with the following format: |
|
| 21 |
+ |
|
| 22 |
+column 1 : DNS <server> used |
|
| 23 |
+column 2 : Query sent |
|
| 24 |
+column 3 : Query type (A,AAAA,NS...) |
|
| 25 |
+column 4 : epoch timestamp value at the start of the program |
|
| 26 |
+column 5 : epoch timestamp after the DNS resolution of <server> |
|
| 27 |
+column 6 : duration of DNS resolution |
|
| 28 |
+column 7 : Status ERROR, TIMEOUT, NOERROR, NXDOMAIN... |
|
| 29 |
+ |
|
| 30 |
+1.1.1.1,google.com,A,1754639504,1754639504,0.004934,NOERROR |
|
| 31 |
+ |
|
| 32 |
+ |