peach-dyndns-server/README.md

34 lines
721 B
Markdown
Raw Normal View History

2019-04-19 03:58:29 +00:00
# peach-dyndns-host
2021-05-19 09:03:16 +00:00
a dynamic DNS server to host the names of guests with changing IP addresses
by providing an http API for updating bind9 configurations.
2019-04-19 03:58:29 +00:00
2021-05-19 09:03:16 +00:00
## setup
2019-04-19 03:58:29 +00:00
2021-05-19 09:03:16 +00:00
The code in this repo assumes the existence of an installed and running bind9 server on the same
server as is running peach-dyndns-server. Documentation for setting up bind9 can be found [here](docs/setup-bind-for-peach-dyndns.md).
2019-04-19 03:58:29 +00:00
2021-05-19 09:03:16 +00:00
The peach-dyndns-server code can be compiled with
```
cargo build --release
2019-04-19 03:58:29 +00:00
```
2019-05-07 11:27:55 +00:00
2021-05-19 09:03:16 +00:00
## run
2019-05-07 11:27:55 +00:00
2021-05-19 09:03:16 +00:00
```
sudo su peach-dyndns; ./target/release/main -vv
2019-05-07 11:27:55 +00:00
```
2021-05-19 09:03:16 +00:00
## test
2021-05-19 09:03:16 +00:00
test peach-dyndns server is running,
```
curl http://localhost:8000
```
2021-05-19 09:03:16 +00:00
test peach-bind9 is running,
```
nslookup blue.dyn.peachcloud.org ns.peachcloud.org
```