I have some subdomains that go to my home address (I know I should put it through a VPS first but I’ll get to that when I have time).
If I connect to example.domain.tld and DNS records point back to my own IP, where does that data go to reach back to my device?
Edit: thanks for the responses everyone


Modern routers have a feature that’s typically known as “hairpin NAT” or “NAT loopback”. This means that if the DNS lookup resolves to the router’s public IP, it routes the packet internally instead of passing it out to the internet. So for your subdomains all of the traffic should stay local. Typically this feature is enabled by default, but you may want to check just to be sure.