use log library

This commit is contained in:
wyhaya
2019-09-19 13:12:14 +08:00
parent 340728e41e
commit 8983b943cf
5 changed files with 84 additions and 61 deletions

View File

@@ -32,7 +32,19 @@ You may use `sudo` to run this command because you will use the `53` port, make
Now change your local DNS server to `127.0.0.1` 🚀
### Command
## Running in docker
Build docker image
```bash
docker build -t updns .
```
Start up
```bash
docker run -d --name updns -p 53:53/udp -v /root/updns/:/root/.updns/ --restart always updns
```
## Command
```
Usage:
@@ -51,18 +63,6 @@ Option:
-c Specify a config file
```
## Running in docker
Build docker image
```bash
docker build -t updns .
```
Start up
```bash
docker run -d --name updns -p 53:53/udp -v /root/updns/:/root/.updns/ --restart always updns
```
## Config
You can use `updns config` command and then call `vim` quick edit, or use `updns path` find the updns's installation directory and edit the `config` file