Find the answer to your Linux question:
Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By Irithori
Hello, please in which file can i modiffy TTL (time to live?) value on redhat, debian linux? I will need to switch server to another location, IP so i need ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    349

    Where to decrease TTL value on linux?


    Hello, please in which file can i modiffy TTL (time to live?) value on redhat, debian linux?

    I will need to switch server to another location, IP so i need to modiffy nameservers i registered in my domain registar. (change ip there)

    so i need to minimise downtime of domain/website files.

    People say i need to decrease TTL and make change?
    "Avoid the Gates of Hell. Use Linux affordable VPS."

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    1,652
    You can change the value at /proc/sys/net/ipv4/ip_default_ttl

    It will probably be 64 which is generally considered a good value to use. Remember to put it back.

  3. #3
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,440
    From previous posts, I know that it is not the tcp ttl, but ttl for a dns zone.
    And as I explained: This needs to be set in zone files of the dnservers, which are probably changeable via an admin webgui of your ISP.
    gregm likes this.
    You must always face the curtain with a bow.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    349
    My VPS /proc folder is empty, so you mean i cant help myself setting it on VPS, but changing it on domain registar well ahead of time (like 48 hours) before i modiffy my registered nameservers on domain registar? So when they are changed the website visitors ISP nameservers have low ttl value cached so they optain new VPS IP more quickly?
    "Avoid the Gates of Hell. Use Linux affordable VPS."

  6. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,440
    Basically yes, but be careful with the assumption of 48h.
    This depends on the *current* value of the ttl, as well as some caching effects on top.

    For background information, I suggest to read the RFCs:
    RFC 1034 - Domain names - concepts and facilities
    RFC 1035 - Domain names - implementation and specification
    RFC 2181 - Clarifications to the DNS Specification
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •