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.
- Just click through Get started
- Type “cmd” in the search bar. Press Enter and a small black window will appear. That is your command prompt app.
- Type the command “
hostname“ and press Enter.
After that, your command prompt will display the name of your computer in the next line.
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):
- Type this command exactly as it appears:
net config workstation | findstr /C: “Full Computer Name“
- Enter. The command prompt displays the full DNS name of your computer.
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:
- Open the command prompt.
- Type in “
ipconfig“ and press Enter.
- To search “IPv4 Address”.
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:
- Type “
nslookup“ press Space, add your company domain and press Enter.
- For example, you can use this command on YouTube:
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.
- 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.
- For example, you can type
tracert youtube.comto find the IP address of all servers that “stand” between you and YouTube.
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.