-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,73 @@ | ||
# Introduction | ||
|
||
Access your containers hostnames from everywhere | ||
A simple DNS Server proxy | ||
|
||
# Running | ||
|
||
## Running localy | ||
|
||
Build the project | ||
|
||
npm install | ||
|
||
Starting the server | ||
|
||
npm start | ||
|
||
## Running on docker | ||
|
||
npm install # install dependencies | ||
gradle build-dev # build docker image and run the container starting the app | ||
|
||
# Testing if DNS is working | ||
|
||
$ host google.com 127.0.0.1 | ||
Using domain server: | ||
Name: 127.0.0.1 | ||
Address: 127.0.0.1#53 | ||
Aliases: | ||
|
||
# Adding DNS entries | ||
|
||
you can edit `records.json` manually or use the **Gui Editor** | ||
|
||
# Gui editor | ||
|
||
the password is `cat` | ||
|
||
http://<localhost or docker container ip>:5380/ | ||
|
||
# Setting this proxy as default proxy | ||
|
||
sudo echo 'nameserver <127.0.0.1 or docker container ip>' > /etc/resolv.conf | ||
|
||
# A entry example | ||
|
||
records.json | ||
|
||
[ | ||
{ | ||
"records": [ | ||
{ | ||
"type": "A", | ||
"address": "127.0.0.1", | ||
"ttl": 300, | ||
"name": "testing.mageddo.com" | ||
} | ||
], | ||
"domain": "testing.mageddo.com" | ||
} | ||
] | ||
|
||
testing on terminal | ||
|
||
$ host testing.mageddo.com 127.0.0.1 | ||
Using domain server: | ||
Name: 127.0.0.1 | ||
Address: 127.0.0.1#53 | ||
Aliases: | ||
|
||
testing3.mageddo.com has address 127.0.0.1 | ||
testing3.mageddo.com has address 127.0.0.1 | ||
testing3.mageddo.com has address 127.0.0.1 | ||
|
||
# status | ||
We are working to be it real |