Question

Server DNS address could not be found [ERR_NAME_NOT_RESOLVED]

Hello, I have 2 droplets, the first one has domain pb82.net, and it works perfectly. The second one peter-ezzat.net, ip of 159.203.176.145 and the domain doesn’t work.

whois peter-ezzat.net Domain Name: PETER-EZZAT.NET Registrar: GODADDY.COM, LLC Sponsoring Registrar IANA ID: 146 Whois Server: whois.godaddy.com Referral URL: http://www.godaddy.com Name Server: NS1.DIGITALOCEAN.COM Name Server: NS2.DIGITALOCEAN.COM Name Server: NS3.DIGITALOCEAN.COM Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited Updated Date: 29-jul-2016 Creation Date: 20-jul-2013 Expiration Date: 20-jul-2017

Thank you.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Allright, I found your problem. Please post your webserver VHOST config. The webserver (nginx or apache) probably redirects the domain peter-ezzat.net to www.peter-ezzat.net. I can verify this once you posted the VHOST configuration.

Since you haven’t setup the www DNS setting, this will not resolve to your droplets IP. To fix this either setup an A record that resolves www or a global resolve 1:

www     IN      A       159.203.176.145

2:

*     IN      A       159.203.176.145

Once the DNS settings have been applied at your IPS, you will be able to use both peter-ezzat.net and www.peter-ezzat.net to resolve your webserver IP.

BTW: You can also setup an A record that resolves to your server IP. You can then use CNAME’s for all other DNS records that needs to be resolved to the server IP. This saves time, because you don’t have to use the IP all the time:

server1    IN    A     159.203.176.145
www    IN    CNAME    server1

You can use anything you like to resolve to your server.

Hope this helps you out!

Thank you very much, just in case, thats the new settings, right?! https://postimg.org/image/n65siusg7/

I quote: Since you have the nameservers redirected to digitalocean you would need to configure it at DO

This means you need to configure the DNS at DIGITALOCEAN. Please post the DNS config of DO