The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DNS propagation - why is a subdomain only accessible minutes after it's creation (own nameservers)

Discussion in 'Bind / DNS / Nameserver Issues' started by Gulnor, Jul 10, 2014.

  1. Gulnor

    Gulnor Registered

    Joined:
    Jul 10, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi everybody

    we have question about the behavior of DNS propagation for subdomains.

    Here's the scenario we are trying to achieve:

    User1 registers at our site "company.com". A subdomain "user1.company.com" is automatically created, not as add-on domain of "company.com", but as standalone account in WHM.

    So, an own zone is being created & an A record is being set (same IP as company.com)
    NS records are also set to "ns1.domain2.com + ns2.domain2.com", our own nameservers
    (no clustering, 2 different IP's, BIND method, they are provided for the moment by the same WHM installation as for company.com & subdomains)
    Domain2.com is handled by our registrar GoDaddy, nameservers ns1 + ns2 are also defined there.

    Our problem is that right after the creation the domain "user1.company.com" is not immediately accessible (unlike an add-on domain).

    When we nslookup for example the new domain "user1.company.com" with the nameservers from our ISP, right after it's creation, we get "Non-existent domain". Then, after 1-15 minutes, and depending on the DNS we try, the nslookup answers with the correct IP address. The DNS from Google (8.8.8.8) for example immediately! answers with the correct IP address.

    What exactly happens when the user tries to access his subdomain "user1.company.com"? Are our nameservers contacted to resolve the subdomain or are the subdomains somehow propagated across the DNS servers worldwide? But why does Google's DNS answer immediately, propagation can't be so fast!

    Any ideas where may be the problem and how to make a subdomain account accessible immediately after its creation, regardless of the DNS being used by the user?

    Many thanks

    Marc
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Re: DNS propagation - why is a subdomain only accessible minutes after it's creation (own nameserver

    Whether the subdomain is immediately available depends on the user's own local resolvers, which are usually provided by their ISP. You don't really have control over propagation time, but generally speaking, if a user has not accessed the subdomain before, it should load somewhat immediately on the first attempt if it is indeed configured in your nameservers. Not all resolvers work this way though.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Re: DNS propagation - why is a subdomain only accessible minutes after it's creation (own nameserver

    Hello :)

    Yes, as Vanessa mentioned, this depends on the resolvers used by a user's local machine. The fact that Google's resolvers output the correct data right away indicates the DNS itself is configured correctly.

    Thank you.
     
Loading...

Share This Page