DNS is a hierarchical system involving many servers, starting with a root server. There are also caches at different locations. When you update nameservers on your domain control panel, it can take 24-72 hours, in general, for the changes to take effect. This time period is called the DNS propagation time.