Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
docs: update readme with better systemd instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig authored Oct 4, 2022
1 parent c00aeb7 commit 9854dbc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,22 @@ WantedBy=multi-user.target

Typically this file would be created at `/etc/systemd/system/donutdns.service`.

Register the new unit with `sudo systemctl daemon-reload`
Configure systemd to run the new service.

Enable the service with `sudo systemctl enable donutdns.service`

Start the sevice with `sudo systemctl start donutdns`

Check the service with `sudo systemctl status donutdns`
```shell
sudo systemctl daemon-reload # update systemd configurations
sudo systemctl enable donutdns.service # enable donutdns service in systemd
sudo systemctl start donutdns # start donutdns service in systemd
sudo systemctl status donutdns # inspect status of donutdns service in systemd
```

#### as a docker container

`donutdns` is available from [Docker Hub](https://hub.docker.com/repository/docker/shoenig/donutdns/general)

This will run the `donutdns` Docker container as the `nobody` user, mapping traffic from port 53.
```
docker run --rm -p 53:5301 -u nobody shoenig/donutdns:v0.1.2
docker run --rm -p 53:5301 -u nobody shoenig/donutdns:v0.2.0
```

#### as a Nomad job
Expand Down

0 comments on commit 9854dbc

Please sign in to comment.