I have a local web server and the following situation:
- Accessing web server externally via domain name and IP works
- Accessing web server internally via local IP works
- Accessing web server internally via external IP works
- Accessing web server internally via domain name is SLOW
I know I can just edit the HOSTS file on all the machines here but that is not a solution for me. (I could also set up a DNS server, but I've tried and I can't get it to work, it's a pain)
Any idea why this is happening?
It's timing out trying to resolve. You can either add it to
/etc/hosts
or specify a DNS server (you could even use Google's public DNS8.8.8.8
)