Skip to content

Commit 93ae5c7

Browse files
committed
adding documentatio
1 parent 1837871 commit 93ae5c7

File tree

1 file changed

+71
-3
lines changed

1 file changed

+71
-3
lines changed

README.md

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,73 @@
1+
# Introduction
12

2-
Access your containers hostnames from everywhere
3+
A simple DNS Server proxy
4+
5+
# Running
6+
7+
## Running localy
8+
9+
Build the project
10+
11+
npm install
12+
13+
Starting the server
14+
15+
npm start
16+
17+
## Running on docker
18+
19+
npm install # install dependencies
20+
gradle build-dev # build docker image and run the container starting the app
21+
22+
# Testing if DNS is working
23+
24+
$ host google.com 127.0.0.1
25+
Using domain server:
26+
Name: 127.0.0.1
27+
Address: 127.0.0.1#53
28+
Aliases:
29+
30+
# Adding DNS entries
31+
32+
you can edit `records.json` manually or use the **Gui Editor**
33+
34+
# Gui editor
35+
36+
the password is `cat`
37+
38+
http://<localhost or docker container ip>:5380/
39+
40+
# Setting this proxy as default proxy
41+
42+
sudo echo 'nameserver <127.0.0.1 or docker container ip>' > /etc/resolv.conf
43+
44+
# A entry example
45+
46+
records.json
47+
48+
[
49+
{
50+
"records": [
51+
{
52+
"type": "A",
53+
"address": "127.0.0.1",
54+
"ttl": 300,
55+
"name": "testing.mageddo.com"
56+
}
57+
],
58+
"domain": "testing.mageddo.com"
59+
}
60+
]
61+
62+
testing on terminal
63+
64+
$ host testing.mageddo.com 127.0.0.1
65+
Using domain server:
66+
Name: 127.0.0.1
67+
Address: 127.0.0.1#53
68+
Aliases:
69+
70+
testing3.mageddo.com has address 127.0.0.1
71+
testing3.mageddo.com has address 127.0.0.1
72+
testing3.mageddo.com has address 127.0.0.1
373

4-
# status
5-
We are working to be it real

0 commit comments

Comments
 (0)