Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Cloudron often having problems with connection, "DNS_PROBE_FINISHED_NXDOMAIN", connection times out

    Support
    domain dns
    2
    7
    221
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hustler last edited by girish

      My domain, https://perthmod.com as well as the dashboard https://my.perthmod.com frequently has issues with connecting - it either shows the message "DNS_PROBE_FINISHED_NXDOMAIN" or loads forever and times out. I've restarted my device, tried different browsers and devices, and nothing seems to work. Sometimes, it works, sometimes it doesn't - I could only access it on a VPN on my own home network, I don't live in a country with censorship btw.

      Please help! Thank you.

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by girish

        So, a quick "hack" when you hits this, since you have no control of the intermediate DNS servers is to edit /etc/hosts (or equivalent in your OS) and put this:

            1.2.3.4 domain.com
        

        replace with your domain and server ip. That would make things work, later in a day or so, you can remove that entry.

        H 2 Replies Last reply Reply Quote 1
        • girish
          girish Staff @hustler last edited by

          @hustler said in Cloudron often having problems with connection, "DNS_PROBE_FINISHED_NXDOMAIN", connection times out:

          DNS_PROBE_FINISHED_NXDOMAIN

          I guess you are seeing this in the desktop/laptop browser?

          NXDOMAIN means that when the DNS was queried, there was no dns entry for that domain. This can happen when you go to domain.com on your browser before Cloudron has setup the DNS. This results in a so called NXDOMAIN (no entry). These NXDOMAIN responses are "cached" in the desktop and all the intermediate DNS servers for a longer time than usual. The intermediate DNS depends on your laptop's DNS which is your router, ISP etc.

          So, to summarize, don't reboot the cloudron, that won't solve the problem. If anything, you have to restart your browser (these days even they have a DNS cache) or your laptop or your router...

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by girish

            So, a quick "hack" when you hits this, since you have no control of the intermediate DNS servers is to edit /etc/hosts (or equivalent in your OS) and put this:

                1.2.3.4 domain.com
            

            replace with your domain and server ip. That would make things work, later in a day or so, you can remove that entry.

            H 2 Replies Last reply Reply Quote 1
            • H
              hustler @girish last edited by

              @girish thank you so much! I'll let you know if I have any issues. I honestly expected to wait DAYS for a response, but cloudron is really fast 😄

              1 Reply Last reply Reply Quote 0
              • H
                hustler @girish last edited by

                @girish how would i edit /etc/hosts on mac, sorry? I tried editing the file in finder, however it returned "You don't have permission to edit this file"

                girish 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @hustler last edited by girish

                  @hustler You have to be superuser to edit . See https://kinsta.com/knowledgebase/edit-mac-hosts-file/ . (but essentially, sudo nano /etc/hosts).

                  Also, in my original post, I had reversed the format of the hosts file, I have fixed it now! It has to be IP address and then space and then domain name

                  H 1 Reply Last reply Reply Quote 1
                  • H
                    hustler @girish last edited by

                    @girish said in Cloudron often having problems with connection, "DNS_PROBE_FINISHED_NXDOMAIN", connection times out:

                    sudo nano /etc/hosts

                    thanks girish!!!

                    1 Reply Last reply Reply Quote 0
                    • Topic has been marked as a question  girish girish 
                    • Topic has been marked as solved  girish girish 
                    • First post
                      Last post
                    Powered by NodeBB