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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. WildCard Alias too short

WildCard Alias too short

Scheduled Pinned Locked Moved Discuss
dns
3 Posts 2 Posters 733 Views 2 Watching
  • 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.
    • M Offline
      M Offline
      moonmeister
      wrote on last edited by girish
      #1

      I was just working on multi-site WP Setup and had an issue with not being able to reach a site I created. I had setup the wildcard alias, I confirmed it made it to my DNS provider (gandi.net). nslookup confirmed the lookup was failing.

      $ nslookup gg.api.domain.net
      Server:  UnKnown
      Address:  2001:4888:24:ff00:223:d::
      
      *** UnKnown can't find gg.api.domain.net: Non-existent domain
      

      I randomly did a different subdomain and got an interesting result...it worked.

      $ nslookup blah.api.domain.net
      Server:  UnKnown
      Address:  2001:4888:24:ff00:223:d::
      
      Non-authoritative answer:
      Name:    blah.api.domain.net
      Address:  167.99.168.xxx
      

      This mad me wonder if the 2 letter domain was causing the issue. I changed the subdomain in the WP Network panel to something longer, and everything started working.

      I'm not sure if this is a Gandi limitation, a DNS limitation, or something else. But in-case others ran across this issue, I thought I'd give folks a heads up.

      girishG 1 Reply Last reply
      0
      • M moonmeister

        I was just working on multi-site WP Setup and had an issue with not being able to reach a site I created. I had setup the wildcard alias, I confirmed it made it to my DNS provider (gandi.net). nslookup confirmed the lookup was failing.

        $ nslookup gg.api.domain.net
        Server:  UnKnown
        Address:  2001:4888:24:ff00:223:d::
        
        *** UnKnown can't find gg.api.domain.net: Non-existent domain
        

        I randomly did a different subdomain and got an interesting result...it worked.

        $ nslookup blah.api.domain.net
        Server:  UnKnown
        Address:  2001:4888:24:ff00:223:d::
        
        Non-authoritative answer:
        Name:    blah.api.domain.net
        Address:  167.99.168.xxx
        

        This mad me wonder if the 2 letter domain was causing the issue. I changed the subdomain in the WP Network panel to something longer, and everything started working.

        I'm not sure if this is a Gandi limitation, a DNS limitation, or something else. But in-case others ran across this issue, I thought I'd give folks a heads up.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @moonmeister Just guessing here but in DNS world there is a thing called NXDOMAIN. When you look up a domain which is not there in DNS, then the error code is NXDOMAIN. This code is special that it's cached for a long time in the intermediate routers. I guess the reason is that people don't expect domains to appear and disappear randomly, so it makes sense to cache it longer. So, if by any chance you looked up gg.api.domain.net before the DNS has propagated, then it's probably cached over everywhere as NXDOMAIN. The cache is almost a day! See also https://serverfault.com/questions/426807/how-long-does-negative-dns-caching-typically-last

        Anyway, so what you want to do the next time around is to look up like this to be double sure that it's not related to above like this:

        host gg.api.domain.net <IP ADDRESS OF GANDI DNS SERVER>
        

        The above makes it go straight to GANDI DNS and gets the result. It's also not cached anywhere in your local NS. You can also try the above command with various popular NS like 8.8.8.8, 1.1.1.1 etc.

        M 1 Reply Last reply
        1
        • girishG girish

          @moonmeister Just guessing here but in DNS world there is a thing called NXDOMAIN. When you look up a domain which is not there in DNS, then the error code is NXDOMAIN. This code is special that it's cached for a long time in the intermediate routers. I guess the reason is that people don't expect domains to appear and disappear randomly, so it makes sense to cache it longer. So, if by any chance you looked up gg.api.domain.net before the DNS has propagated, then it's probably cached over everywhere as NXDOMAIN. The cache is almost a day! See also https://serverfault.com/questions/426807/how-long-does-negative-dns-caching-typically-last

          Anyway, so what you want to do the next time around is to look up like this to be double sure that it's not related to above like this:

          host gg.api.domain.net <IP ADDRESS OF GANDI DNS SERVER>
          

          The above makes it go straight to GANDI DNS and gets the result. It's also not cached anywhere in your local NS. You can also try the above command with various popular NS like 8.8.8.8, 1.1.1.1 etc.

          M Offline
          M Offline
          moonmeister
          wrote on last edited by
          #3

          @girish Just when I thought I understood DNS I learn about negative caching. Not sure if this was the issue, but it is possible. Thanks.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search