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, the DNS server is at

That’s all there is to it.

Join the 80/20 DevOps Newsletter

If you're an engineering leader or developer, you should subscribe to my 80/20 DevOps Newsletter. Give me 1 minute of your day, and I'll teach you essential DevOps skills. I cover topics like Kubernetes, AWS, Infrastructure as Code, and more.

Not sure yet? Check out the archive.

Unsubscribe at any time.