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 rewrite dns config and zone files?

Discussion in 'Bind / DNS / Nameserver Issues' started by felosi, Jun 25, 2008.

  1. felosi

    felosi Active Member

    Joined:
    Aug 27, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    I am running cpanel current. I should have known better but last night after upcp my dns was screwed on 3 differnent servers. Come to find out it had messed with named.conf and every single zone file.

    Why would it do this? I been all morning fixing these and Im pretty sure on some of the zones stuff was switched around. This has happend on 3 different servers right after update.

    Anyone else had this issue?

    And yes how can we prevent cpanel from messing with such things again?
     
  2. FijianTribe

    FijianTribe Well-Known Member

    Joined:
    Jan 30, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Same thing happened to me, just entered a support request ticket. I can access WHM but all my sites are now unavaliable. Second time this year this has happened.
     
  3. felosi

    felosi Active Member

    Joined:
    Aug 27, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Wow that makes me mad. It had no reason to mess with the dns zones and named.conf. It did not do anything but screw them up. Its not like i have some super custom zone files here. Regular hosting server with ALL dns zones and named.conf completely screwed.

    Well at least it did make backups before it did it....

    I am going to have to find a way cpanel cannot touch that stuff. I would really like to hear an explanation from cpanel staff or the developer (s) who thought this was a good idea. I just dont see what it aimed to achieve besides completely screwing up someone's dns

    Its not just current, its stable and release as well that has had problem updates the last year or so. Cpanel updates have became my number one problem and support issue.
     
    #3 felosi, Jun 25, 2008
    Last edited: Jun 25, 2008
  4. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    I'm not sure if this is the same issue but I noticed domains that have had the cpanel, whm, webmail, and webdisk subdomains added automatically overnight without any intervention. The MX records on those domains have also reverted back to the deault %domain% instead of the ones we had set them to. It seems pretty random!

    As far as I can tell, the twek settings option is only supposed to make these changes on NEW domains.

    Not only that, why are these new functions added to tweak setings ENABLED as default ? We should decide whether we actually want them BEFORE they start screwing up our servers without any warning!
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator

    When the Proxy records are added to a Zone, the Zone file is not rewritten. The functions simply perform an 'add' to the current Zone file.

    If the server experiencing issues is part of a DNS Cluster, then other problems can occur if the various cluster members are out of sync.
     
  7. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Regardless of that Ken, can you tell me why the records got added? Did the upgrade process attempt to automatically add the proxy records to all zone files on the server?
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Only to Zone files for the primary domains. Meaning it won't be added to Parked, Addon or Subdomains. The records are added automatically upon the upgrade to 11.23 as the feature is enabled by default.

    If you have a server (or servers) that have yet to upgrade to 11.23, try adding this to /var/cpanel/cpanel.conf before upgrading to 11.23:

    Code:
    proxysubdomains=0
    proxysubdomainsfornewaccounts=0
    proxysubdomainsoverride=0
    
    That should prevent the Zones from being added. However, I have not actually tested that scenario.

    We've been attempting to re-create your scenario by provision a server with accounts using off-server MX, then upgrading to 11.23 (which adds the Proxy records automatically), without success. Each time the MX records are preserved.


    Aside: there is a script, /scripts/proxydomains, that allows you to add the records to any Zone.
     
  9. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    As discussed in the other thread, a number of zone files on the servers did not match those on the nameservers. Your automatic update of all the DNS zones caused those zone files to be pushed up to the nameservers with the incorrect information.

    I'm very shocked and also quite concerned that cpanel think it is ok to make changes to all the DNS zones on all our servers without giving us any opt out. I suppose thats what we get for using automatic updates.
     
Loading...

Share This Page