Windows
In Windows, you can use thenslookup
command to query DNS records.
-
Open Command Prompt: You can open it by searching for "cmd" or "Command Prompt" in the Start menu.
-
Execute query command: Enter the following command in the command prompt, and replace
example.com
with the domain name you want to query:nslookup example.com
-
View results: The command will return the A record (IP address) associated with the domain name.
Linux
In Linux, you can also use the nslookup
or dig
command.
-
Open terminal (GUI): usually can be opened by shortcut key
Ctrl + Alt + T
. -
Using the
nslookup
ordig
command: Enter any of the following commands:Use
nslookup
:nslookup example.com
or use
dig
:dig example.com
-
View results: These commands will display the DNS information of the domain name, including A records.
macOS
On macOS, you can use the same commands as on Linux.
-
Open Terminal: You can find Terminal through Applications > Utilities in Finder, or search using Spotlight.
-
Execution command: Import
nslookup
ordig
Instruction:Use
nslookup
:nslookup example.com
or use
dig
:dig example.com
-
View results: The terminal will display the DNS information of the domain name, including the A record.