> ## Content Index
> Fetch the complete content index at: https://ivans.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Abusing Public DNS for Zerotier Routing
- URL: https://ivans.io/abusing-public-dns-for-zerotier-routing/
- Published: 2021-04-12T19:11:22.000Z
- Updated: 2021-04-12T19:11:22.000Z
- Author: Ivan Smirnov
- Tags: tech, networking, Import 2022-12-02 03:12, #Import 2026-08-12 21:23

## Picking a Mesh VPN

I've been a big fan of [mesh VPNs](https://www.csoonline.com/article/3575088/mesh-vpns-explained-another-step-toward-zero-trust-networking.html?ref=ivans.io) for many years now. It's great to not have to deal with [Strongswan](https://www.strongswan.org/?ref=ivans.io) or [OpenVPN](https://openvpn.net/?ref=ivans.io) on a central server. Mesh VPN's also come with intelligent routing, so if both of my devices are at home on the same network they will dial each other directly. This concept also combines nicely with my interest in setting up a [BeyondCorp](https://research.google/pubs/pub43231/?ref=ivans.io) analog for my home use.

I used to run a private cloud on [Tinc](https://www.tinc-vpn.org/?ref=ivans.io), but adding new devices was extremely cumbersome and there is no mobile device support.

After looking into alternatives, I discovered [Tailscale](https://tailscale.com/?ref=ivans.io) and [Zerotier](https://www.zerotier.com/?ref=ivans.io). I don't need the hardcore firewall rules of [Tailscale](https://tailscale.com/?ref=ivans.io), so I decided to set up [Zerotier](https://www.zerotier.com/?ref=ivans.io) on all of my devices. The installation truly is less than 5 minutes - I am impressed.

## Abusing DNS

I can set custom IP's in my [class B](https://study-ccna.com/classes-of-ip-addresses/?ref=ivans.io) address space (prefix 172.xx), but I don't want to memorize them all. Even though it's not up to DNS spec, we can set internal IP's as A records on [Amazon Route53](https://aws.amazon.com/route53/?ref=ivans.io) and have them resolve to the Zerotier address space. 

I don't view it as a strong security risk, because even if someone knows my internal VPN IP, they still have to break into the network to route any requests to my devices.

By setting up semi-proper DNS for my machines, I can completely detach from the physical network layout and have all of my proxies and scripts reference the internal VPN DNS names. This works extremely well - I can move my server and plug it into any network, and still be able to access it.

## Mobile Support

Most importantly, I now have easy addresses to use on my mobile devices. I can install the [app](https://apps.apple.com/us/app/zerotier-one/id1084101492?ref=ivans.io) and join my network, then use Files, [Termius](https://termius.com/?ref=ivans.io), or [Solid Explorer](https://play.google.com/store/apps/details?id=pl.solidexplorer2&hl=en%5FUS&gl=US&ref=ivans.io) to view my files and media on the go.