My domain points to two different IP addresses after DNS nameserves change

Domain points to two different IP addresses after DNS  change

Domain points to two different IP addresses after DNS change

One of my friends faces the issue where his domain name (testing .com) pointing to two different IP addresses once he changed his DNS nameserves.
He told me that his domain (testing.com) points to IP address xxx-xxx-xxx-xxx before he changed his DNS nameservers
Then he changed his domain (testing.com) DNS nameserves and the new IP address is xxx-xxx-xxx-xxx.

After some time he use ping command to check the reply and he was wondering because he got reply from Both IP addresses. When he visit web-site url from browser than facing issue in data loading. Sometimes its loads web-page and sometimes doesn’t load web-page.

If you are facing the same issue than no need to worry, this issue resolved automatically. Let me explain why these issues arise?

DNS resolvers receive lots of requests daily and because of that they DNS resolver cache requests. Your domain points to first IP address before you change the DNS which is in cache. When you change your DNS nameservers than its points to new IP address but it doesn’t clear cache immediately. Existing cache points to old IP address, this is the reason why its points to both IP addresses.

Once the cache has been cleared than its will points to new IP address only.