+ 3
It's depends not on that function bilut on DNS resolver you use, DNS cache and other big DNS resolvers cache. Every domain has TTL for the expire and refresh records. Practically 12-24 hours needed to new domain visible globally.
You can speed up caching new domain by querying your NS server directly and open public DNS servers such as Google 8.8.8.8
In other