This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I am running an OpenVPN client in a container on Linux (UnRAID) and want to update the host's resolv.conf according to the DNS option that is being pushed by the OpenVPN server.
OpenVPN can execute an up-script when the tunnel is established but since I am obviously not going to mount /etc/ in the container I can't modify the host's resolv.conf directly.
right now I have a script running every minute that pings the OpenVPN server and echos the OpenVPN DNS option to resolv.conf if the ping is successfull or echos the local DNS server if the ping fails.
Any way to modify the host's resolv.conf from inside the container so I can use the up-script OpenVPN provides?
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/docker/comm...