You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,13 @@
1
1
# RIP
2
2
A simple DNS server that extracts IP address from the requested domain name and sends it back in the response.
3
3
4
-
# Encoding rules
4
+
# Usage
5
+
6
+
0. Install Go 1.16+
7
+
1. Perform `go get -u github.com/buglloc/rip/v2`
8
+
2. Have fun ;)
9
+
10
+
## Encoding rules
5
11
Since RIP extracts the response from the request, it's important to understand the encoding rules.
6
12
RIP has three kinds of entities:
7
13
- rr - something that generate response (e.g. IP, CNAME and so on):
@@ -28,15 +34,15 @@ RIP has three kinds of entities:
28
34
29
35
Also, RIP allowing to use any prefixes (see examples below).
30
36
31
-
# IP address format
37
+
##IP address format
32
38
IP address can be presented in two variants - dash-delimited and base16-form. For example, ips `0a000001` and `10-0-0-1` are equal and points to `10.0.0.1`
33
39
You can also use the built-in converter to encode IP address:
34
40
```
35
41
$ rip encode fe80::fa94:c2ff:fee5:3cf6 127.0.0.1
36
42
fe80000000000000fa94c2fffee53cf6 7f000001
37
43
```
38
44
39
-
#Usage
45
+
## Examples
40
46
Run NS server for zone `example.com` with default IP `77.88.55.70` and `2a02:6b8: a:: a`:
0 commit comments