3

Atm i have a domain example.com, it uses dedicated server, and it uses "ns1.example.com" and "ns2.example.com" as nameserver. Now i want to change to another dedicated server (with different IP obviously).

How to shorten DNS propagation effect so that all visitors that open my domain will be pointed to the new server quickly?

At this moment i am lowering the TTL value on old server (to 5 minutes) hoping that once i change the nameserver, all visitors will be pointed to new server. Am i correct? If not, can you give me suggestion?

Sempa
  • 133
  • 3

2 Answers2

3

Short answer: You can't.

Many DNS servers will have policies that override the TTL that you specify. By reducing the TTL, you are probably doing everything you can though.

This other question may be of interest to you:

Bryan
  • 7,628
  • 15
  • 69
  • 94
2

The first thing to do is update the TTL in your domain's SOA record and make it much smaller say, 600 seconds (10 minutes).

IN  SOA     ns1.example.com.  you@example.com. (
                       2            ; serial number <<<<update this
                       3600         ; refresh   [1h]
                       600          ; retry     [10m]
                       86400        ; expire    [1d]
                       3600 )       ; min TTL   [1h] <<<<reduce this to 600 

Update the serial number to make sure that the changes are noticed.

This should reduce the TTL for your DNS records to 600 seconds but it will take up to the current TTL seconds for this change to be noticed around the internet.

Now when you change your IP address it should only take 10 minutes for it to be noticed. In practice though it can still take quite a long time.

user9517
  • 115,471
  • 20
  • 215
  • 297