DNS works after reboot but then “Can’t reach nameserver” (AWS Lightsail)

Hello everyone,I’m running HestiaCP on an AWS Lightsail Ubuntu server and I’m having a DNS issue.When I reboot or stop/start the instance, everything works fine at first and my domain loads correctly. But after a few minutes, the website stops working.When I check on DNS checker tools, it shows “Can’t reach nameserver.”

NS1 and NS2 were working before, and port 53/UDP is open in the AWS firewall.Has anyone experienced this before? Why would the nameserver work after reboot and then become unreachable after a few minutes?

Thanks for your help.

Could you please share more informations about your setup? If you run own nameserver, you need at least two different servers.

If it works after reboot, have a look at the bind9/named service to verify, that all is running properly.

Hello,Yes, I am using two different nameservers on two different servers:

  • ns1 → 18.133.4.76

  • ns2 → 3.9.102.191

Both servers have bind9 (named) installed and running.When I stop and start the instance for ns1, I am able to access it again via my domain, but after a few minutes the issue returns and DNS checker shows “Can’t reach nameserver.”

I have attached a screenshot of my DNS records for reference.

check the bind/named logs, probaly something fails there.

Is it for the ns2 or ns1?

both, check the logs :slight_smile: