Hey everyone! We've got a domain that we bought from an external provider, and it points to an internal server on our network via a public IP address. The tricky part is, while we can access the site from outside our network, we can't get to it from inside, and we're behind a NAT setup. Any ideas on how to fix this?
5 Answers
An easy fix is to create an internal DNS record that points your domain (like www.yoursite.tld) directly to the internal IP of your server.
Before diving into DNS settings, what exactly does "Cannot access it" mean for you? Can you resolve the domain locally using `nslookup`? Also, check if the open port on your public IP is accessible from inside the network with a command like `nc -zv mypublicip 443`. We need more details to help you better!
You'll want to set up an internal split DNS. This way, when you're inside your network and access your domain, it resolves to the internal server's private IP instead of the public one.
You should check in with your network admin or managed service provider. They can assist with NAT reflection or perhaps help with split view DNS to solve the issue.
Have you tried using NAT loopback? It's often called hairpin NAT. Instead of managing separate DNS records, this method lets you access your site seamlessly from within your network without any confusion.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures