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.

Why TTL on cPanel DNSOnly is fixed?

Discussion in 'Bind / DNS / Nameserver Issues' started by kbn, May 9, 2013.

  1. kbn

    kbn Registered

    Joined:
    May 9, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello.

    My English isn't very good.
    I hope my English mistakes haven't put you off.

    I have two servers.
    One is cPanel/WHM installed. Another one is cPanel DNSOnly installed.
    cPanel/WHM is primary DNS server(NSD), cPanel DNSOnly is secondly DNS server(MyDNS).

    I set that TTL is 14400(default) on cPanel/WHM.
    But when I add a domain on WHM, secondly DNS server's TTL is fixed to 86400.

    Primary:
    Code:
    # dig @primary-dns mail.example.com a
    example.com.            14400   IN      A       192.168.0.1
    Secondly:
    Code:
    # dig @secondly-dns mail.example.com a
    example.com.            86400   IN      A       192.168.0.1
    14400 is written in /var/named/example.com.db on secondly DNS server.
    But 86400 is written in MySQL record of MyDNS on secondly DNS server.

    My guess is that if I use BIND, then TTL will be correct.
    However, I want using MyDNS.

    Is there anything I should confirm?

    Thanks!
     
  2. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Second that!
    I face the same issue here.

    Have no idea how to fix this dam issue.
     
  3. Yuri

    Yuri Registered

    Joined:
    Aug 22, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    To anyone that still have this problem with MyDNS.

    By default the MyDNS is configured to follow the minimum TTL in SOA records of a domain but for some reason the default minimum TTL used by DNS Zones created by cPanel is 86400!

    So when you try to use de MySQL all DNSs entries with TTL less than minimum will by increased to minimum.

    But fortunately the MySQL have an option to workaround this.

    Just edit the /etc/mydns.conf and change:

    ignore-minimum = no

    To:

    ignore-minimum = yes


    And the MyDNS will start to ignore the SOA minimum TTL just like the BIND and NSD does.
     
Loading...

Share This Page