By BrianVeg
Solution Architect
I have setup a VPN between Digital Ocean and my private network. I would like to use the DNS I have setup on that network for my VPN clients to use. Is this possible?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi, I believe the answer to your question strongly depends on the configuration. In my case I cannot use DNS servers of my home office network because there are accessible just from inside my ISP’s network, and my internet gateway is in DO’s network when vpn connection is established. Here is my configuration:
Internet
|
|
------------------ ------------------
| DO Droplet 1 | 10.8.0.0/24 | Home Office |
| (CentOS 8) |_________VPN_______ | ISP's router |
| Internet gateway | \----| Internet gateway |
| VPN Server | \ ------------------
| Front-end Server | \____ |
------------------ | |LAN 192.168.0.0/24
| | |------------
|VPC | | |
|10.106.0.0/20 ------------- |
| | PC 1 | |
----------------- | VPN Client/ | |
| DO Droplet 2 | | VPN Gateway | |
| (Ubuntu 20.04) | | (CentOS 7) | |
| VPN Access | ------------- |
----------------- |
------------- |
| PC 2 | |
| VPN Access |--
| (Windows 10)|
-------------
So, I have to use either DO’s DNS servers or publicly accessible servers (e.g. OpenDNS, Google, etc.).
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.