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 DNS error with CNAME record

    Support
    cname dns
    2
    7
    66
    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.
    • T
      TheNils last edited by girish

      I have created a A DNS records for master.domain.io and *.master.domain.io which point to the ip of my cloud (1.1.1.1 for the example).
      I created a CNAME record for anotherdomain.io which points to master.domain.io.
      I added the domain anotherdomain.io to the cloudron (wildcard option) and it worked.
      When I try to install an app on anotherdomaine.io I get stuck with this error:

      box:dns/waitfordns waitForDns: waiting for anotherdomaine.io to be 1.1.1.1 in zone thenils.fr
      Jan 25 14:24:31 box:dns/waitfordns waitForDns: nameservers are ["ns103.ovh.net","dns103.ovh.net"]
      Jan 25 14:24:31 box:dns/waitfordns resolveIp: Checking if anotherdomaine.io has A record at 213.251.128.147
      Jan 25 14:24:31 box:dns/waitfordns resolveIp: Checking if anotherdomaine.io has CNAME record at 213.251.128.147
      Jan 25 14:24:31 box:dns/waitfordns resolveIp: Resolving anotherdomaine.io's CNAME record master.domaine.io
      Jan 25 14:24:31 box:dns/waitfordns isChangeSynced: NS ns103.ovh.net (213.251.128.147) errored when resolve anotherdomaine.io (A): Error: queryA EREFUSED master.domaine.io
      Jan 25 14:24:31 box:dns/waitfordns waitForDns: anotherdomaine.io at ns ns103.ovh.net: not done
      Jan 25 14:24:31 box:dns/waitfordns Attempt 1 failed. Will retry: ETRYAGAIN
      

      I can't permanently control the DNS records of anotherdomain.io but I need to be able to redirect it to another ip if I want and i have full control over master.domain.io.
      Also, the error tells me to point to 213.251.128.147 but that's ovh's DNS server ip .
      i don't know if i'm missing something or if there is a bug or if cloudron doesn't like CNAME ?

      Thanks

      girish 1 Reply Last reply Reply Quote 2
      • girish
        girish Staff @TheNils last edited by

        @TheNils yup, this exact issue was fixed in 7.3.5. Can you please update and try? Settings -> Check For Updates and update. It will show as unstable since we are gradually rolling it out, but should be stable.

        T 1 Reply Last reply Reply Quote 1
        • T
          TheNils @girish last edited by

          @girish awesome! i update and report back !

          T 1 Reply Last reply Reply Quote 0
          • T
            TheNils @TheNils last edited by

            @girish it doesn't work better after the update.
            the error has evolved though:

            Jan 26 11:32:55 box:dns/waitfordns waitForDns: nameservers are ["ns103.ovh.net","dns103.ovh.net"]
            Jan 26 11:32:55 box:dns/waitfordns resolveIp: Checking if anotherdomaine.io has A record at 213.251.128.147
            Jan 26 11:32:55 box:dns/waitfordns resolveIp: No A record. Checking if anotherdomaine.io has CNAME record at 213.251.128.147
            Jan 26 11:32:55 box:dns/waitfordns resolveIp: CNAME record found. Resolving anotherdomaine.io's CNAME record master.domaine.io using unbound
            Jan 26 11:32:55 box:dns/waitfordns isChangeSynced: NS ns103.ovh.net (213.251.128.147) errored when resolve anotherdomaine.io (A): Error: queryA EREFUSED master.domaine.io
            
            
            girish 2 Replies Last reply Reply Quote 0
            • girish
              girish Staff @TheNils last edited by

              @TheNils Oh indeed. I don't know how this happened but https://git.cloudron.io/cloudron/box/-/commit/e4d9dbb55853ae5e5a2cca5f0514db2a2f5665e5 was the fix and the line of code that actually fixes is the issue is... gone!

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

                @TheNils Can you try this single line fix:

                https://git.cloudron.io/cloudron/box/-/commit/2b260c873fafac29245f2e34ae65eeff0935c457

                The file on the server is /home/yellowtent/box/src/dns/waitfordns.js. Just retry the task after you make the change and it should work (no need to restart anything).

                T 1 Reply Last reply Reply Quote 1
                • T
                  TheNils @girish last edited by

                  @girish thanks, that worked 🙂

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