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.

Is there a way to lower the TTL in whm?

Discussion in 'General Discussion' started by TogaDave, May 12, 2005.

  1. TogaDave

    TogaDave Well-Known Member

    Joined:
    Apr 13, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    First let me apologize for my lack of knowledge in this area, but I'm not sure where else to ask this.

    I'm getting rid of all 20 IP addresses on my server and trading them for new ones. (The existing 20 are from my old host who had spam problems and got my IP's blacklisted with several BLS lists).

    I'm told that in order to avoid extensive downtime that I should lower the TTL on my server before we replace the IP's, but I have no idea how to do this.

    Can someone please point me in the right direction?

    Thank you very much in advance for any help, it is very much appreciated by this "command line dummy who relies on point & click" over here.
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    Hard way:

    Edit dns zone, go though each and change 14440 to 100 (or whatever you want)

    Easy way:

    replace 100 14400 -- /var/named/*

    That will change all the 14400 entries to 100 in the /var/named directory automatically for you.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The downside to doing that is that it doesn't increment the serial number. If you don't use cPanel DNS clustering and have a traditional secondary, you'll have to force over the changes. You also may have problems with other DNS servers not recaching the zone file since the serial is the same.
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    When I needed to modify many zone files I found it easier to just download them all and use a good text editor. I used search/replace to change all the times, then used wildcard search/replace to increment the serial numbers.
     
  5. TogaDave

    TogaDave Well-Known Member

    Joined:
    Apr 13, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the advice guys!

    Chirpy, do you mean that is the downside to doing it from WHM or from the second method in eth00's example?

    eht00 - i'm assuming your easy way is from command line?

    squirrel - to bring you down to my level of naive, i'm not sure where/how to download the zone files, much less know what the serial numbers are for or should be or how they should be incremented. About the only thing I understood rock-solid was wildcard search and replace.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The problem I described was with eth00's method. As squirrel said, you need to be a bit more careful and either write yourself a script to do it, or use an extended editor. The files in question are in (normally) /var/named/*.db and you really need to read up on the structure of zone files, though in short, you need to increment the serial value which is the first value of the SOA definition.
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    To download them for modification, you need either a secure FTP program, or you could copy them to your website's directory and copy them back after modification.

    One FTP program is at vandyke.com called SecureFX. There's a free one, but I keep forgetting where it is and what it's called.
     
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    PM me if you want me to change the TTL's for you.
     
  9. TogaDave

    TogaDave Well-Known Member

    Joined:
    Apr 13, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    As always, thanks for your insight, you guys are always very helpful (even when I'm just reading other peoples threads I read a lot of your responses to them)!

    And squirrel, I'm going to give this a shot with my upstream, but thank you very much for your very generous offer.
     
  10. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    No problem. Let us know how it goes.
     
  11. Ramsy

    Ramsy Guest

    I think you mean WinSCP

    http://winscp.net/eng/index.php
     
  12. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  13. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Yeah, and filezilla is available in multiple languages. Very cool. :)
     
  14. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
Loading...
Similar Threads - lower TTL whm
  1. uk01
    Replies:
    2
    Views:
    472
  2. flycast
    Replies:
    5
    Views:
    189

Share This Page