I’m new to using Hestia and BIND to do DNS and I’m not really sure how I’d go about it. I know what hestia seemed to create by default, but it seems nothing happening with DNS records and the like so not sure if I did something wrong. I just added a new DNS zone and was hoping that’d be it? I’m not sure if there was more I need to do. It hasn’t been a full 24 hours or more, but I am just trying to make sure I’m doing things properly.
I’m getting no DNS records exist when I try and add SSL. It is unknown if I try and ping the name servers. I’m just really unsure if I did things right or not…
DNS is hierarchical and starts from the root, which is represented by the dot at the end of the TLD. Most people don’t know about it since it is often not shown. The root delegates to the TLDs which then delegate to the next level child zones. This delegation is set by the nameservers registered in your domain whois record that is maintained at your domain registrar.
If the DNS server on your HestiaCP host is not in your whois, no one will know that is where queries for your domain should be sent. If the nameserver is in the same domain for which it is also authoritative, glue records will be needed in the parent zone. Those are also something that you manage at your domain registrar.
The domain in question already points over to what hestiaCP creates when I did a DNS zone/website and yet nothing happens. I changed the DNS location at the registrar end of things and also put the IP for the site there, but I’m trying to sort out how I go about setting up DNS properly with hestia in the first place as in creating a DNS server or the like.
It is tictactape.com ive done some web stuff before but we are truimg to being more stuff in house outside of the server itself (might transition to a server on location some day. Im just condused hoe it works as i didnt set a domain during install or anythint so im wondering if indid something wrong there etc. I k ow its installed but no idea if i set it up right.
Like wondering did i need to do a domain like from a diff service for hestia to get the dns to work right?
Well, domain tictactape.com has defined these name servers:
NS1.IP-51-89-173.EU
NS2.IP-51-89-173.EU
The problem is that you didn’t define dns A records neither for ns1.ip-51-89-173.eu nor ns2.ip-51-89-173.euso nobody could reach your server to ask your dns server for your domain records.
Hmm ill need to poke someone abour that. We did change the name server and stuff on the registrar end,. Im not sure how id set an a record for that stuff since that seemed ro sort of just generate off the name of the OVH server itself. Im perplexed how I would go about it or is that something id set at the registrar for tictactape.com? Cuz tou said i didnt gave a records for those. Like i said i didnt do a domain on default setip so not sure if that had a play in because the ovh server itself is has its method and it seems like it made a default dns based off that.
If i made any sense? Confused where i set them since im only used to doing the registrar stiuff and on hestias end it lists the ip pr a records but thats usually my only dealings to change things when i deal witb a registrar or shared hosting. I guess the moat basic thing im asking is do i need to have a domain for hestia itself because it seems like it is juat generating it based on the ovh info which i dunno.
Was kind of wondering if someone had done it before that may know the steps and all
So does that mean I need to have an actual domain set during setup that would be able to set up an A record and stuff? I’m not actually sure where it pulled NS1.IP-51-89-173.EU or 2 from other than part of it being the address from OVH itself . It is cutting off the start of it and replacing it with the NS1 and NS2., I need to use a longer string to actually access the server itself.
you could run this from your hestia server. It will show how the NS and related A records are setup. Then you go to your registrar, DOMAIN REGISTRATION SERVICES, INC DBA DOTEARTH.COM, and add the glue records
for each in $(dig @localhost tictactape.com NS +short);do echo -n "$each " ;dig @localhost $each A +short;done
Yeah that’s why I was wondering if I needed to have a domain itself that hestia is on? There isn’t stuff I can alter at NS1.IP-51-89-173.EU or NS2 of that.
If I look on Hestia’s end of things on the DNS thing I see this., but there isn’t a domain of NS1.IP-51-89-173.EU or the like that I have the IP-51-89-173.EU and a string before it are what I use to access OVH itself hence where I’m confused because the Hestia end looks like everything is set right, but as I said I don’t actually have a domain there it is just something from OVH or were they saying the A records for tictactape.com were not set on the registrar’s end?
When you register a domain you should add at least two name servers, if you don’t add anyone, usually your registrar will use its own dns servers or in this case, random ns servers based on the hostname they assigned to your server. If you registered tictactape.com domain you need to add the nameservers for that domain, let’s say they will be ns1.tictactape.com and ns2.tictactape.com.
The “problem” here is that the nameservers have the same base domain name and no one can ask them what are the DNS records because no one knows the ip of the servers that should be asked for. So, in this case, at your registrar, you need to add the two name servers AND the glue records, that means that your registrar will associate ns1 and ns2 with the ip or ips you give to them.
ns1.tictactape.com using ip 51.89.173.72 ns2.tictactape.com using the same ip 51.89.173.72
Once you execute this command and you can see the name servers ns1.tictactape.com and ns2.tictactape.com instead of ns1.ip-51-89-173.eu and ns1.ip-51-89-173.eu then you should start to worry about Hestia’s configuration.
The thing i’m trying to clear up is a few things I guess. First The ns1 is from my server and something hestia made with BIND. BIND itself is a DNS server is it not? I’m trying to figure out how I’d be able to resolve things from hestia on my registrar. Tictactape.com reads the ns1 and ns2 with IP-51-89-173.EU because that is what Hestia created. Once Hestia created those I took that and put the ns1. IP-51-89-173.EU and ns2. IP-51-89-173.EU and then the IP 51.89.173.72 into it on dotearth Like i’d do if I had a name server given to me from say dreamhost.
That’s partly why I’m asking if I actually need to create an individual domain on a registrar specifically for Hestia before I can actually use it because Hestia itself is what created those things in the DNS zone and what it spits out as my default DNS.
Yes, you need to use a domain name that is yours with your HestiaCP instance. The domain name that your ISP maps their PTR records to will not suffice as you have no access to its configuration.
Yes, bind is a dns server. And yes, Hestia added the ns records because by default, if you don’t modify it when creating the dns zone, it will use the default name servers configured in the package you are using and if you didn’t configure the dns servers in that package, it will check the base domain of your hostname (in your case it takes the domain ip-51-89-173.eu from your server’s hostname ns3152267.ip-51-89-173.eu) and then adds two NS records, ns1.ip-51-89-173.eu and ns2.ip-51-89-173.eu
As @linkp explained, in your case that’s wrong, you must configure again your name servers at dotearth and in Hestia, modify the zone for your domain so the NS records point to ns1.tictactape.com and ns2.tictactape.com… also, you should add two A records for ns1 and ns2 pointing to 51.89.173.72
Okay, so what I’m getting at is this. So say I put hestia’s domain with the install script (because that’s how I installed) as sunshinehosting.com (example). It would create the NS1 and NS2 as sunshinehosting.com and the like.
I was trying to ask if hestia itself would require me to have a domain because now it is connecting via https://ns3152267.ip-51-89-173.eu:8083/ instead of say sunshinehosting.com (the point of tictactape.com was not to be the overall domain here and instead a seperate site under hestia ie hosting multiple w ebsites using hestia.
What I’m trying to ascertain there is if I’m going to need a basic domain to start hestia on for it to work properly and it looks l ike that is the case? I’m not looking for it to be tictactape specifically, but it is indeed the case that I’d need to do a domain yeah?
If you don’t use the option --hostname when installing Hestia, it will use you current hostname (in your case ns3152267.ip-51-89-173.eu).
Note: as hostname you should use whatever.example.net instead of the base domain example.net
Hestia without a real domain will be a bit useless and you connect to Hestia Control Panel using the hostname of your server and by default using port 8083. Keep in mind that you can change the server’s hostname via Web UI or via command line.
You need a domain, it could be the one provided by default by your hosting provider but the best choice is to use your own domain because maybe you can’t make changes to the ns records for the domain provided by your hosting company.