After upload my php website on app platform , i get DNS_PROBE_FINISHED_NXDOMAIN. I already add everything on my composer.json and update it for get a new composer.lock. I don’t why why i still get DNS error https://prnt.sc/10tp653
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!
Hello there,
Keep in mind that DNS changes might take up to 24 hours in order to fully update. Can you please confirm if you’re still experiencing the issue? Also, you can check the DNS resolution using our DNS tool here:
Hope that this helps! Regards, Alex
You may also try using a command line tool like dig and curl to check the URL.
dig <domain> will show DNS information for the domain.
curl -v <URL> will try to retrieve a web page and show the headers and response body.
If the dig command returns the NXDOMAIN, then the curl command should fail too. The dig command may also show some numbers relating to how many seconds the response is cached (possibly cached on your computer, your ISP’s DNS server, and other layers of DNS querying).
Something to note is that web browsers will try to follow redirects. Curl does not by default. You may see something like this:
< HTTP/1.1 301 Moved Permanently
< Location: https://my-test-app.ondigitalocean.app/
in which case you will need to do another curl using the URL in the Location header that was returned.
You may also see something like this:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://www.my-test-app.ondigitalocean.app/">here</a>.</p>
</body></html>
Note that the reference in the response has a different URL than the original. In this case it is being redirected to a with www. appended to the beginning of the URL. If you try to follow that redirect, you will get a NXDOMAIN as the app platform doesn’t set up a DNS for subdomains on the auto generated ondigitalocean.app domain. If you are using a custom domain, make sure that the www subdomain is also attached to the app.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.