OK, I've just got hold of a Dell PowerEdge T710 with 2x Intel Xeon 6 core CPU's, 192GB RAM, and 8x 1TB SAS HD's configured as raid 5, and I installed the bare bones, headless Ubuntu Server 18.04.2 LTS, then I set the server hostname to a FQDN, then installed virtualmin using the install script, and let it install everything needed.
Now the question is, how can I use virtualmin to create LAN only access virtual servers? When I created a virtual server via the virtualmin 'Add virtual server' page, the DNS records are pointing to my WAN IP not the servers LAN IP.
This is what I did to setup my workstation to try and access any virtual servers on the server:-
1st I opened the NIC properties on my windows workstation and set the IPV4 DNS client IP address to the virtualmin server )192.168.0.160)
2nd Disabled LMHosts search.
3rd using a command window to flush the DNS resolver cache, 'ipconfig /FLUSHDNS'
4th disable the NIC, then re-enable it
So now hopefully, any DNS requests should go through bind9 DNS service on the virtualmin server right? Wrong!, when I do a tracert on an outside domain name, such as yahoo.com, the first hop should be my server, but it's isn't,
Oh and the virtualmin server's network DNS client settings are set to resolve file then DNS, and also the DNS order is:-
127.0.0.1 127.0.0.1 184.108.40.206 220.127.116.11
Here's and example of what I tried:-
1.....Create virtual server.....domain name = testsite.com 2......Description = Pchelp website 3......Set admin password
Clicked on Create Virtual Server, then waited for everything to be configured and show the buttons for virtual servers list and show virtual server details. Then on my workstation, I try to use http://testsite.com in the address bar and it sends me to actual sites that exist with that domain name, instead of directing it to the internal IP address 192.168.0.160/testsite, but if I directly use 192.168.0.160 I get 'Access Denied', which tells me I haven't yet setup a website there.
So, there has to be a way for virtualmin to use any domain name internally, and not access any outside DNS service unless I actually want to update the OS etc etc.
I should be able to type in a domain name on my workstation and it opens any websites that is configured with that name, EG, http://pchelp.com would open a website configured on that domain, or if I enter, http://sillypc.org, then that too opens a website configured for that domain but ONLY on the virtualmin server, I should be able to have 10 or more sites on a shared IP, but accessed using domain names, without attempting to resolve to a real domain name.