0

I recently moved my website to a new server and updated the DNS entries. This includes some API endpoints that other servers use.

These other servers however are not picking up the changes and are still hitting the old API server.

Is there a way to force these servers to pick up the new DNS entries or do I just have to wait? It's been over 24 hours so far.

1 Answers1

2

Is there a way to force these servers to pick up the new DNS entries or do I just have to wait? It's been over 24 hours so far.

You may need to restart these services. A lot of software only does name resolution on startup.

For example, this is how nginx behaves unless you use the resolver directive.

Another scenario, if your old webserver is still online and responding, is that it'll be used as long as existing TCP sessions stay alive. In this case, rebooting it will kill existing TCP sessions and force clients to re-establish them, this time to the new server. But again, this depends on what software you're running and how it handles name resolution and HTTP/TCP sessions.

IsAGuest
  • 967