How To Find AWS VPC's DNS Server
I was setting up Tailscale subnet routers in AWS.
I needed to set the VPC DNS servers in Tailscale under the DNS tab to resolve DNS entries in our private hosted zones.
How do you get the ip address of an AWS VPC’s DNS server?
It turns out that each VPC has one DNS server, and it’s located at the VPC’s CIDR block + 2.
This means that if your VPC’s CIDR block is 10.10.0.0/16
, the DNS server is at 10.10.0.2
.
That’s all there is to it.
Master GitHub Actions with a Senior Infrastructure Engineer
As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.
Not sure yet? Check out the archive.
Unsubscribe at any time.