The Command Prompt is a powerful tool that you can use to do literally everything on your computer. Among other complex processes, Command Prompt allows you to create, move, delete files, and find all important information about your computer components.
Although it is necessary to understand and learn command prompt commands to be able to use this tool in complex processes, some simple but beneficial processes do not require as much computer knowledge.
In some situations, you will need to know the name of your computer. For example, you will need this information if you want to connect your printer to multiple PCs. This can be done very easily using the command prompt and this article will show you how.
How to use the command prompt to find your computer name
Before we start explaining the different ways and commands you can use to find your computer’s name, you need to know how to open the command prompt.
- Just click Begin
- Guy “cmd” in the search bar. Press Enter and a small black window will appear. That’s your command prompt app.

- Write the command “
hostname“ and press Enter.
After that, your command prompt will display your computer name on the next line.

The only potential problem here is that you have to be very careful when writing. If you make a typo, the command prompt will not recognize the command and nothing will happen.
Get DNS or FQDN from your computer
To get the full DNS or fully qualified domain name (FQDN) of your computer, use the following commands:
- Type this command exactly as shown:
net config workstation | findstr /C: “Full Computer Name“ - Get into. The command prompt will display the full DNS name of your computer.

Other valuable information you can get from the command prompt
Your computer’s IP address
Another very important piece of information you may need is your computer’s IP address. Of course, the command prompt can help you with this as well.
The following steps will help you find your computer’s IP address in no time:
- Open the command prompt.

- Write “
ipconfig“ and press Enter.
- Look for “IPv4 address”.

If you are using a VPN (virtual private network) for your work, you will have more information in IPv4 Address.
The IP address of your enterprise domain server
Another interesting command you may want to use is “nslookup”. This command allows you to find the IP address of your company’s domain server:
- Guy “
nslookup“ Press Space, add your company domain, and press Enter.
- For example, you can use this command on YouTube:
nslookup youtube.com
IP addresses between your computer and your website
The command prompt will print all the server IP addresses between your computer and the website you entered.
- Guy “
tracert“At your command prompt, press the Space key, enter the website you want to visit (or any website of your choice), and press Enter.
- For example, you can write
tracert youtube.comto find the IP address of all the servers that “stand” between you and YouTube.
Start using Command Prompt
As you can see, your computer’s command prompt is a versatile tool that you can use for a variety of tasks. Although 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.