These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Cant access site via domain name internally on the new forum.
I donno if iam missing somthing simple or not but i have 2 sites setup and running fine on my home server with virtualmin my domains are pointed to them fine and all works good accessing the site via domain name from an external network. But i cant browse my site from any computer connected to my network via putting in my domain names ? ammi missing somthing simple ? Thanx
Probably because the domain name resolves to the external IP. Which is then forwarded via your router to the virtualmin server, and virtualmin then looks at the domain name and decides which domain to send you to. But accessing internally it would be looking for the lan IP and not the wan IP and the lan IP is not associated with a domain name. Might be able to fix that by manually adding an A record to the domain for the lan IP.
You need to use a BIND feature called "views". Basically, it makes it so that you have two different zone files for each domain; one for internal, the other for external. Fortunately, some kind soul has written some documentation at https://doxfer.webmin.com/Webmin/BIND_DNS_Server#Using_BIND_views. Let us know how you get on.
Will report back thanks for the help much appreciated
was unable to get this working donno if iam missing somthing out or not
iam still struggling with this if anyone can help me with it