Back to the knowledge base
Admax Hosting AB · web hosting in Sweden since 1996Published 31 March 2026
The commands "ping" and "nslookup" are useful for finding out where a domain points, or for troubleshooting a network issue.
PING: Shows the IP address a domain resolves to. This gives you a clue as to where, for example, your website is hosted.
NSLOOKUP: Tells you the name of the server.
Windows
- Open the command prompt by pressing the Windows key on your desktop, then type cmd and press Enter.
- A new window will open. Type ping domainname and press Enter.
- The result will show the IP address the domain points to.
- By typing the command nslookup ipaddress in the same window and pressing Enter, you will see the server name if one exists.
macOS
- Open Finder.
- Then open Terminal: Applications > Utilities > Terminal.
- A new window will open. Type ping domainname and press Enter.
- The result will show the IP address the domain points to.
- Using the command nslookup ipaddress and pressing Enter will show the server name if one exists.
Feel free to try our online tool for information about a domain name. You can access it here.
Free tool
- DNS lookupView all DNS records for a domain: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA.
- DNS propagationCheck whether a changed DNS record has taken effect at Google, Cloudflare, Quad9 and AdGuard.
- Is the domain available?Check whether a domain name is available and see at the same time if it is free on .se, .nu, .com and .eu.
- Whois lookupSee who the registrar is for a domain, when it was registered, when it expires, and which name servers it uses.