How to find your computer name from command prompt

The Command Prompt is a powerful tool that you can use to do literally anything on your computer. Among other complex processes, the command prompt allows you to create, move, delete files and find all important information about the components of your computer.

While it is necessary to understand and learn the command prompt commands to use this tool for complex processes, some simple but useful processes do not require so much computer knowledge.

In some situations you need to know the name of your computer. You need this information, for example, if you want to connect your printer to several PCs. This can be done very easily by using your command prompt, and this article will show you how.

How to use the command prompt to find your computer’s name

Before we start explaining different ways and commands you can use to find your computer’s name, you need to know how to open your command prompt.

  1. Just click through Get started

  2. Type “cmd” in the search bar. Press Enter and a small black window will appear. That is your command prompt app.

    Command Prompt 1

  3. Type the command hostname and press Enter.

    Screenshot 2022 11 21 222828

After that, your command prompt will display the name of your computer in the next line.

hostname

The only potential problem here is that you have to be very careful with your typing. If you make a typo, the command prompt will not recognize the command and nothing will happen.

Obtain DNS or FQDN from your computer

Use the following commands to get your computer’s full DNS or fully qualified domain name (FQDN):

  1. Type this command exactly as it appears:

    net config workstation | findstr /C: “Full Computer Name

  2. Enter. The command prompt displays the full DNS name of your computer.
full computer name

Other valuable information you can get from command prompt

The IP address of your computer

Another very important piece of information you may need is your computer’s IP address. Of course, Command Prompt can also help you with this.

You can find your computer’s IP address in no time with the following steps:

  1. Open the command prompt.

    Command Prompt 1

  2. Type in ipconfig and press Enter.

    Screenshot 2022 11 21 223051

  3. To search “IPv4 Address”.
ipconfig

If you use a VPN (virtual private network) for work, you can find more information under the IPv4 address.

The IP address of your Business Domain Server

Yet another interesting command you may want to use is “nslookup”. You can find the IP address of your corporate domain server with this command:

  1. Type nslookup press Space, add your company domain and press Enter.

    Screenshot 2022 11 21 223147

  2. For example, you can use this command on YouTube: nslookup youtube.com

    Screenshot 2022 11 21 223210

IP addresses between your computer and your website

The command prompt prints out all server IP addresses between your computer and the website you entered.

  1. Type tracert In your command prompt, hit the space bar, enter the website you want to visit (or any other website of your choice) and hit enter.

    Screenshot 2022 11 21 223406

  2. For example, you can type tracert youtube.com to find the IP address of all servers that “stand” between you and YouTube.

    Screenshot 2022 11 21 223449

Start by using the command prompt

As you can see, your computer’s command prompt is a versatile tool that you can use for a variety of tasks. While these few commands are considered very basic and fundamental, they are a good starting point for those who want to learn more about using the command prompt.

Leave a Reply

Your email address will not be published. Required fields are marked *