After you change your nameservers or move a website, you need to know when the change has worked. You do not have to guess. A built-in command shows exactly where your domain points, and it takes about two minutes.
Before you start
- Your domain name, such as
yourbusiness.lk. - The nameservers or address from your hosting welcome email.
- A computer with a command line. Time: about five minutes. Difficulty: beginner.
Not sure how a domain connects to hosting? Read domain name vs web hosting first.
Step 1: Open a command line
By the end of this step you will have a window ready to type commands.
- On Windows, open the Start menu, type
cmd, and open Command Prompt. - On a Mac, open Terminal from Applications, Utilities.
Check: you see a blinking cursor waiting for a command.
Step 2: Look up where your domain points
By the end of this step you will see the address your domain resolves to.
- Type
nslookup yourbusiness.lk, using your own domain, and press Enter. - Look for the line that begins with Address, below the name you typed.
Check: the address matches the one in your hosting welcome email or in your hosting account. If it does not, the change has not finished, or the domain points somewhere else.
Step 3: Look up the nameservers
By the end of this step you will see which nameservers your domain uses.
- Type
nslookup -type=ns yourbusiness.lkand press Enter. - Read the names listed as nameserver.
Check: the names match the two nameservers from your welcome email.
Step 4: Open the site
By the end of this step you will confirm the site really loads from the new place.
- Open your domain in a private browser window.
- Check for the padlock.
Check: you see your site, with https and no warning. If you still see the old page, follow how to clear your browser and DNS cache.
What success looks like
The address and nameservers match your hosting details, and your site loads normally. Changes can take a few hours to spread across the internet, so it is normal for some devices to show the new result before others.
Common problems
The result still shows the old address. The change may not have spread yet. Wait a few hours and run the command again.
The result is blank or an error. Check the spelling of the domain, and that the domain has not expired.
The nameservers are right but the page shows an error. The domain is reaching the server, and the problem is with the site itself. See website errors explained.
FAQ
Do I need a special tool?
No. nslookup comes with Windows and macOS. There are also websites that check DNS, but the command needs nothing extra.
Why do I get a different answer on another device?
Each device and network keeps a saved copy for a while. They update at different times.
Who can help if the details do not match?
Contact our team with your domain, the result and the details from your welcome email. If you are moving a site, our free migration article explains what we handle for you.
