Allow the container to touch DNS (#300)

This commit is contained in:
Maartje Eyskens
2017-12-17 00:57:21 +01:00
committed by Jess Frazelle
parent 9d4ecac24b
commit 1dcfad42ae
3 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,13 @@ If you **don't** need to specify a password, you can use `docker-compose run -d
If you OpenVPN configuration needs extra files (certificates etc) you can drop them in this directory too.
## How to fix DNS
To let OpenVPN change your resolv.conf file you need to add 2 scripts to your configuration to trigger the Alpine provided scripts.
```
up /usr/share/openvpn/up.sh
down /usr/share/openvpn/down.sh
```
## Why?
Because we're the containerati and we like when things are [neatly arranged in their boxes](https://twitter.com/zooeypeng/status/613053137050439681).