mirror of https://github.com/tiyn/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
5 years ago
|
# Bind
|
||
5 years ago
|
|
||
|
## Setup Server
|
||
|
|
||
|
### Docker
|
||
|
|
||
5 years ago
|
The official container and documentation was made by [ventz](https://hub.docker.com/r/ventz/bind).
|
||
|
|
||
5 years ago
|
#### Volumes
|
||
|
|
||
5 years ago
|
Set the following volumes with the -v tag.
|
||
|
|
||
|
| Volume-Name | Container mount | Description |
|
||
|
| ---------------- | --------------- | ----------------------- |
|
||
5 years ago
|
| bind\_cache | /var/cache/bind | cache for dns |
|
||
|
| bind\_etc | /etc/bind | configuration for dns |
|
||
|
|
||
|
#### Ports
|
||
5 years ago
|
|
||
|
Set the following ports with the -p tag.
|
||
|
|
||
|
| Container Port | Recommended outside port | Protocol | Description |
|
||
|
| -------------- | ------------------------ | -------- | ----------------- |
|
||
|
| 53 | 53 | TCP | dns protocol port |
|
||
|
| 53 | 53 | UDP | dns protocol port |
|
||
|
|
||
5 years ago
|
#### Additional
|
||
|
|
||
5 years ago
|
There are some special variables to set.
|
||
|
|
||
|
| Flag | Usage |
|
||
|
| ----- | ------------------------------------------------------- |
|
||
|
| --dns | set two of these flags for specific dns forward servers |
|
||
5 years ago
|
|
||
|
#### Rebuild
|
||
|
|
||
|
```
|
||
|
#!/bin/sh
|
||
|
docker stop bind
|
||
|
docker rm bind
|
||
|
docker pull ventz/bind:latest
|
||
|
docker run --name bind \
|
||
|
--restart unless-stopped \
|
||
|
--dns=1.1.1.1 --dns=8.8.8.8 \
|
||
|
-p 53:53/udp \
|
||
|
-p 53:53 \
|
||
|
-v bind_cache:/var/cache/bind \
|
||
|
-v bind_etc:/etc/bind \
|
||
|
-d ventz/bind:latest
|
||
|
```
|