Server Not Found - Subserver Issue

SYSTEM INFORMATION
OS type and version CentOS 7 64bit 7.9.2009
Webmin version 2.021
Virtualmin version 7.7

Within Virtualmin, I created a virtual server associated with a domain I own. The website loads up fine on any web browser.

However, when I create a subserver then try to load up its contents on a web browser, it says the website cannot be found.

The web browser console error message reads, “NS_ERROR_UNKNOWN_HOST”, and when I input the subserver name into DNSchecker.org, the entire list of DNS servers are not able to pick up anything. I also ran the Validation feature on Virtualmin for both the primary and sub server, and both results read the same, “All features are good.”

Have you set your A/AAAA record for the subserver? (It sounds like you have no A/AAAA record so the internet cannot find you.

Just like the primary server, the subserver does have A records.

However, the primary server does have 4 types of records that the subserver does not have - these records are: SOA (Start of Domain), SPF (Sender Permitted From), NS (Name Server), and DCT (Default Cache Time).

Is Virtualmin responsible for you DNS
Screenshot 2023-07-14 224611
or is DNS handled by registrar or the box VS provider?

I did check the box for the ‘Setup DNS Zone’ feature.

I’m not sure what the other options you mentioned are.

My VPS is provided by Hostinger.

To add, my previous web hosting service was HostGator, and I had a shared server plan installed with cPanel, which created subdomains with no issues.

I recently changed my web hosting service to Hostinger so that I could afford a virtual private server. I installed CyberPanel on my VPS first and couldn’t create workable subdomains. I am now using Virtualmin and am running into the same issue.

“…DNS handled by registrar…” <------- The issue might be rooted here.

I’m going to mess around with Hostinger’s hPanel DNS records to see if I can resolve the issue.

This may help
https://www.virtualmin.com/documentation/dns/troubleshooting/

plus all the docs on dns
https://www.virtualmin.com/documentation/dns/

I somewhat fixed the issue by adding CNAME records on hPanel for the subdomains.

But now I’m experiencing something different.

The primary domain and its two subdomains do load up; however, they sometimes load up with the HTTP protocol instead of with HTTPS. All domains are SSL certified, so I’m not sure why this is happening.

Here are the domains if you want to test them out yourself:

existentialresearch.com
index.existentialresearch.com
visualizer.existentialresearch.com

I’ve tested these websites on separate browsers and get somewhat different results:

Google Chrome: Sometimes loads up each website with HTTPS, sometimes doesn’t. When it doesn’t, I have to manually enter “HTTPS…” for the website to load up with a secure connection.

Edge: Will show each website is loading up with the HTTPS protocol, but then redirects to the HTTP version. Huh??? I then have to manually enter “HTTPS…” for it to load up with a secure connection.

Firefox: Most of the time, loads each website with the HTTP protocol. I then have to manually enter “HTTPS…” for it to load up with a secure connection.

What website?
Before loading up some unknown code into /home/yourdomain/public_html
Did you first test the default domain index.html file put there by Virtualmin before and after adding the LE cert?

For each website.

I don’t remember. Would updating the SSL cert change anything?

As for the subdomains, they’ve had the default file in their folders since their creation.

I was asking if the website(s) were from some other system such as for example (WordPress) as this might be the cause hence my question about testing the basic Virtualmin page before loading what can often be a pile of unknown and have nothing whatsoever to do with Virtualmin or even SSL certs

Assuming that you now have valid cert for your primary domain - No leave alone.

Are these “subdomains” created in Virtualmin?

Yes.

I’m not sure what you mean regarding what you previously written.

I think I fixed the issue by using the Website Redirect feature in Virtualmin for each domain.

I tested all of them, and they all load up with the HTTPS protocol.

To sum up what I did to resolve the issue(s):

  • Used DNS Records auto-created by hPanel.

  • Pointed the ‘A Record’ (on hPanel) to the IP address of the VPS.

  • Created ‘CNAME records’ (through hPanel) for each subserver created (on Virtualmin).

  • Used default DNS Zone records (enabled on Virtualmin) for the server (and the subservers) created on Virtualmin.

  • Certified server and subserver with Let’s Encrypt (through Virtualmin).

  • Created a website redirection (on Virtualmin) for the server and subservers so that each website is loaded with the HTTPS protocol.

1 Like

And thank you for your help, good sir.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.