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.

wrong dns txt subodomains records

Discussion in 'Bind / DNS / Nameserver Issues' started by Stefan, Nov 14, 2011.

  1. Stefan

    Stefan Member

    Joined:
    Jul 24, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hello,

    We have a problem with cpanel that is regenerating dns zones and is adding a new record to all subdomains, something like this:
    ...
    subdomain3 IN A ip.ip.ip.ip
    subdomain4 IN A ip.ip.ip.ip
    subdomain1 IN TXT ""
    subdomain2 IN TXT ""
    subdomain3 IN TXT ""
    subdomain4 IN TXT ""
    ...

    for all existing subdomains.


    How can we stop this kind o behavior?
    We have some automate tools that brake because of this lines

    --
    Stefan
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I'm confused about regenerating DNS zones. What specifically is regenerating the DNS zones? Those entries appear to possibly be related to SPF records since those are normally TXT entries, but these entries are blank. Do you have any modifications to templates or API hooks you are using for domain or zone creation?
     
  3. Stefan

    Stefan Member

    Joined:
    Jul 24, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    I have done more testing and the problems appears when we recreate(from backup or transfer) an account that has subdomains, on the restore page i have this section :
    "
    Updating SPF Records

    Done

    "
    i was thinking also about spf, but i dont remember any option in cpanel how to activate or deactivate this record.


    Thank you


    --
    Stefan
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The option would be in cPanel > Email Authentication area for activating or deactivating SPF records.
     
  5. Stefan

    Stefan Member

    Joined:
    Jul 24, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Found it, and it was enabled.

    How can i disable it for all accounts on a server.

    I dont use this feature from here, we have a custom spf record added directly in dns zone templates.

    Thank you

    --
    Stefan
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hi Stefan,

    You could try the following:

    Code:
    for $i in `ls -A /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_uninstaller $i ;done
    You'd probably also want to uncheck Email Authentication in WHM > Feature Manager area for whatever feature list you are using for these accounts so that they cannot re-add the records.
     
  7. Stefan

    Stefan Member

    Joined:
    Jul 24, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    This script is removing also my current spf settings and not the empty one, it was expected,
    its ok i can work around this.

    Thank you

    --
    Stefan
     
Loading...

Share This Page