DNS - subdomains not working !

Discussion in 'General' started by tahunasky, Jan 1, 2013.

  1. tahunasky

    tahunasky New Member

    I am trying to get sub domains to work in ISPConfig.

    The predefined mail. and www. work perfectly, however if i add cloud. as an A or CNAME record to my DNS entries it will work for a while - maybe be a day, or only an hour or 2 - then it stops working, and will only work again if i do something within the DNS settings - change, add, delete... but mail and www are not effected at all.. they work fine the whole time...

    Here is the output/configs:

    dig output from the server:
    nslookup from windows PC:
    The problem happens with all 3 domains i have on the server.
    I have had it working fine with dnsmasq on the previous server setup.
    It makes no difference if i am using firefox or chrome.

    If i edit the HOST file on the PC and add cloud.mydomain.com it works fine, so its not a problem with apache.
    If i do a DIG on the server it starts working - sometimes.

    I am using CentOS 6.3 and ISPConfig 3.4.6.

    Any ideas what is causing this and how to fix it ?
    Last edited: Jan 1, 2013
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The most likely reason is that your primary and secondary dns are not in sync. Test them both with the dig command to see if the secondary dns is in sync:

    dig @ns2.mydomain.com cloud.mydomain.com
  3. tahunasky

    tahunasky New Member

    There is no secondary NS, as its only on an internal network at the moment for testing.

    This is really annoying, as i havent touched the DNS records for 2 days now, but yesterday it all worked for a while (checked around midday), then lastnight and this morning i couldnt access cloud.mydomain.com again.

    Then i play around with the DNS.. Just add a CNAME record, and its all working again.

    But i dont understand why mail. and www. always work.

Share This Page