View domain name A record

Windows

In Windows, you can use thenslookup command to query DNS records.

  1. Open Command Prompt: You can open it by searching for "cmd" or "Command Prompt" in the Start menu.

  2. 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
    
  3. 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.

  1. Open terminal (GUI): usually can be opened by shortcut keyCtrl + Alt + T.

  2. Using thenslookup or dig command: Enter any of the following commands:

    Usenslookup:

    nslookup example.com
    

    or usedig:

    dig example.com
    
  3. 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.

  1. Open Terminal: You can find Terminal through Applications > Utilities in Finder, or search using Spotlight.

  2. Execution command: ImportnslookupordigInstruction:

    Usenslookup:

    nslookup example.com
    

    or usedig:

    dig example.com
    
  3. View results: The terminal will display the DNS information of the domain name, including the A record.

Guess you like

Origin blog.csdn.net/qq_38238956/article/details/134875995