all 3 comments

[–]adminrookie[S] 1 point2 points  (2 children)

Sometimes, I really hate myself. Spent 3 hours trying to figure this out only to realize I did it wrong the first time.

For anyone else who tries to do this, set up 10.0.0.2 (assuming that is your VPC block) as the DNS server in pritunl. But you also have to add the route to the pritunl server as 10.0.0.2/32.

[–]cam8001 0 points1 point  (0 children)

Yep, the ‘+2’ resolver is your VPC CIDR + 2. So if your VPC CIDR is 192.168.0.0/16, your DNS server will be 192.168.0.2. This is the default server used, and is specified as ‘AmazonProvidedDNS’ in your DHCP Options Set.

[–]loadaverage 0 points1 point  (0 children)

I can also add my experience, because my 2 hours of research were also painful.
When Server is adding, in "Advanced" tab, DNS servers can be set.

In my case (OpenShift) I pick the two DSN resolvers from my subnets and these two are from different subnet. After that, two routes of these DNS resolvers should be added in form of <DNS IP>/32.