Domains and Doc Root issues

Ok, so I have a fairly fresh Hestia install. Also, Im not a sysadmin per se, but have been running websites for 20yrs.

I have the NS servers setup and working with one domain on the server which is working perfectly. Everything is set correctly with the registrar and pointing the host name to the IP of the VPS.

I have other domains that I will be moving, but want to get the files setup and the site tested before pointing the domains. So I have a “FloaterDomain.com” that I use to temporarily point to the document root while setting is up and moving databases etc. But I am unable to do that, for the last 2 weeks I’ve been pulling my hair out trying to get this to work.

Everytime I try to point FloaterDomain.com to the Root Document of NewDomain.com, it keeps telling me “Error: DNS record for floaterdomain.com doesn’t exist”. But is does and is also pointed to the NS server on my VPS as it should be.

The DNS records are setup just like the domain that is working.

Can I not do that? If so, then that’s an issue for me. Any tips? Hoping this is something simple I missed. Do I have to rebuild the domain each time?

Also, before the previous bad update, I had the floaterdomain.com pointed to a NewDomain.com Doc root, but then it would go to the one working domain every time.

Thanks for any suggestions.

That error occurs when trying to add the certificate.

Please show the output of these commands:

nslookup FloaterDomain.com
nslookup FloaterDomain.com 1.1.1.1

Do the same for all the alias you are using… like www:

nslookup www.FloaterDomain.com
nslookup www.FloaterDomain.com 1.1.1.1

So far all come back with: nslookup: parse of /etc/resolv.conf failed
Even the working domain returns that.

I can ping all the domains and it returns the correct ip.

Now I do have .vip, .club and a .com domain as the floater if that matters.

Hestia uses nslookup to check the ip so you need to fix this issue.

Show the output of /etc/resolv.conf:

ls -l /etc/resolv.conf
cat -A /etc/resolv.conf

-rw-r–r-- 1 root root 114 Feb 17 19:59 /etc/resolv.conf

nameserver 8.8.8.8 $
nameserver 8.8.4.4$
$
$
$

Looks like a type-O there($s) and then should these be my NS servers?
Also when I nano the file, the $ are not there.

Thats because cat -A. That command shows special characters, $ is the line feed, it’s normal that you can’t see them when using nano.

The file looks good, well, an space after 8.8.8.8 but it should work fine, try to recreate again the file.

echo -e 'nameserver 8.8.8.8\nnameserver 8.8.4.4'  > /etc/resolv.conf

And try again:

nslookup FloaterDomain.com
nslookup FloaterDomain.com 1.1.1.1

Ok, returns this:
Server: 8.8.8.8
Address: 8.8.8.8#53

Then Non-authoritative answer:
Name: Floaterdomain.com
Address: server IP

Then for the 1.1.1.1 addition…
Server: 1.1.1.1
Address: 1.1.1.1#53

Then the correct domain name and IP address again.

So that looks to be working now. It also lets me point the floater domain… giving me a 403 access denied, so I need to check that.

Thanks for the help so far.

1 Like