These are some guides for various use.
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.

50 lines
1.4 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Bind
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [ventz](https://hub.docker.com/r/ventz/bind).
  5. #### Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ------------ | ----------------- | --------------------- |
  9. | `bind_cache` | `/var/cache/bind` | cache for dns |
  10. | `bind_etc` | `/etc/bind` | configuration for dns |
  11. #### Ports
  12. Set the following ports with the -p tag.
  13. | Container Port | Recommended outside port | Protocol | Description |
  14. | -------------- | ------------------------ | -------- | ----------------- |
  15. | `53` | `53` | TCP | dns protocol port |
  16. | `53` | `53` | UDP | dns protocol port |
  17. #### Additional
  18. There are some special variables to set.
  19. | Flag | Usage |
  20. | ------- | ------------------------------------------------------- |
  21. | `--dns` | set two of these flags for specific dns forward servers |
  22. #### Rebuild
  23. ```shell
  24. #!/bin/sh
  25. docker stop bind
  26. docker rm bind
  27. docker pull ventz/bind:latest
  28. docker run --name bind \
  29. --restart unless-stopped \
  30. --dns=1.1.1.1 --dns=8.8.8.8 \
  31. -p 53:53/udp \
  32. -p 53:53 \
  33. -v bind_cache:/var/cache/bind \
  34. -v bind_etc:/etc/bind \
  35. -d ventz/bind:latest
  36. ```