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.

How to rewrite dns zones

Discussion in 'Bind / DNS / Nameserver Issues' started by usul82, Dec 21, 2006.

  1. usul82

    usul82 Registered

    Joined:
    Dec 12, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    i have cpanel based server, and have several domains. Now I want to add spf support in dns zones for all domains on the servers. I edited templates, but I don`t have idea how to rewrite domains that were created before changes to template. Probably there is some sort of script, that will do this, but I can`t find it.

    Please help me if You know/have such script.

    Best regards,
    Bart.
     
  2. duranduran

    duranduran Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    SPF for older DNS ZONES ?

    I have the same situation here. I edited all the templates and put the line:

    %domain%. IN TXT "v=spf1 a mx ptr ip4:%ip% a:%nameserver% a:%nameserver2% -all"

    Works ok, but, only for new domains.
     
  3. anzbevrct

    anzbevrct Registered

    Joined:
    Jan 5, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am also trying to do this, but I don't see any button to do what you guys describe in my cPanel.

    Therefore my host granted me SSH access, but I have no idea what commands I have to exicute there to add the SPF string to my dns TXT file...

    Anyone?
     
  4. markfrompf

    markfrompf Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    176
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles, CA
  5. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    did you change the serial number in your .db file?

    if the serial number isn't incremented, then named wont bother reading the new one.. and any downline nameservers will see the serial number the same and assume there are no changes.

    generally the serial number is in yyyymmddXX where xx is the number for that day.
    I think that's the cpanel default numbering.. of course, you're welcome to start at 1 and just increment them, but that'll only work with new domains :P
     
Loading...

Share This Page