Skip to content

How To Blog

how to

  • How to use OpenShot Video Editor for beginners Reviews
  • How To Install a Linux OS On Your Android Phone Linux Tips
  • How to Take LinkedIn Skill Assessments to Boost Your Profile Computer Tips
  • How to Chat in Google Docs and Why You Should How-To
  • The Best Tools for Creating Animated GIF How-To
  • How to Control Your Brightness Settings in Windows 10 Windows 10
  • What You Should Know About Lenovo’s ThinkPad X1 Fold Laptop Gadgets
  • What Is NAT, How Does It Work, and Why Is It Used? Networking

Change IP Address and DNS Servers using the Command Prompt

Posted on October 7, 2020 By blog_786 No Comments on Change IP Address and DNS Servers using the Command Prompt

A command line application, sometimes called a command shell, can be found on most Windows NT-based operating systems. Its purpose is to execute specific commands to troubleshoot or solve specific Windows problems, perform advanced administrative functions, and automate tasks using batch files and scripts.

However, you can also use it to change your IP address when you want to spoof it in order to bypass geoblocks or online bans on sites that impose such restrictions on their content, or change your Domain Name System (DNS) servers. for troubleshooting or for making surfing safer and faster.

Change IP Address and DNS Servers using the Command Prompt

In this tutorial, we will show you how to change IP address and DNS servers using command line in Windows 10.

How to change the IP address using Command Prompt

An IP address contains information about your device, location, your Internet Service Provider (ISP), and browser information.

Changing it is useful if you have a faulty router that provides addresses used by another computer on the network, or if you accidentally configure the wrong address. It is also useful if you want to install a new router and reconfigure your home network to use the default IP range.

Change IP Address and DNS Servers using the Command Prompt

The first step to changing your IP address is to find the network name for the interface you want to change.

– /

  • Open an elevated command prompt by typing CMD in the search bar and clicking Run as Administrator.

  • Then type netsh interface ipv4 show config in the Command Prompt window, press Enter and scroll down to the desired interface.

Change IP Address and DNS Servers using the Command Prompt

Change IP Address and DNS Servers using the Command Prompt

In our case, we will change the Wi-Fi interface, but you can choose the interface that suits your case. Make a note of the interface name.

  • To change the IP address, enter the following command: netsh interface ipv4 set address name = “YOUR INTERFACE NAME” static IP ADDRESS SUBNET_MASK GATEWAY

In our example, this command will look like this: netsh interface ipv4 set address name = “Wi-Fi” static 192.168.0.173 255.255.255.0 192.168.0.0

Change IP Address and DNS Servers using the Command Prompt

This command will use the wifi interface, set the IP address to 192.168.0.173, set the subnet mask to 255.255.255.0, and set the default gateway to 192.168.0.0.

If you want to switch to using an IP address automatically assigned by a DHCP server instead of a static IP address, use the netsh interface ipv4 set address name = ”YOUR INTERFACE NAME” command source = dhcp.

How to change DNS Servers using Command Prompt

A DNS server stores public IP addresses and associated host names in a database and is used to translate or translate host names to IP addresses. The server does this by running special software to communicate with other servers using special protocols based on specific requests from the computer.

The conversion process is thoroughly vetted and verified, and it goes quickly behind the scenes to get information that matches the server the computer is looking for, and then tells the originally connected computer where to go so it can connect to that server.

Change IP Address and DNS Servers using the Command Prompt

There are several reasons why you might want to change your default DNS server, but the main ones are:

  • Increase privacy when bypassing firewalls, bypassing geoblocks or ISP blocking on a website
  • Increased security
  • Parental controls such as blocking websites on your router.
  • Speed ??up browsing that your own ISP’s DNS servers cannot offer as they are not always reliable or up to date

Note. You can change DNS servers individually for your home network on your router or on computers, smartphones, Chromebooks and other devices

How to change DNS servers using the command line

How to change DNS servers using Command Prompt

Follow the steps below to learn how to change DNS servers using the command line.

  • Open an elevated command prompt by typing CMD in the search bar and clicking “Run as administrator”.
    • Type netsh and press Enter.

    Change IP Address and DNS Servers using the Command Prompt

    • Then enter interface ip show config and press Enter.

    Change IP Address and DNS Servers using the Command Prompt

    • Find the network interface whose DNS server you want to change and enter netsh interface ipv4 set dns name = ”YOUR INTERFACE NAME” static DNS_SERVER. This will set up your primary DNS server.

    Change IP Address and DNS Servers using the Command Prompt

    In the above example, we have changed the IP address for the “Wi-Fi” interface, so we will use the same example to change the DNS servers.

    For this tutorial, we’ll be using Google’s primary public DNS server, 8.8.8.8. The command will look something like this: netsh interface ipv4 set dns name = ”Wi-Fi” static 8.8.8.8

    • Then enter the command netsh interface ipv4 set dns name = ”YOUR INTERFACE NAME” static DNS_SERVER index = 2 to set the secondary DNS server. Again, we’ll use Google’s public secondary DNS server 8.8.8.8 as an example, which will look like this: netsh interface ipv4 set dns name = ”Wi-Fi” static 8.8.4.4 index = 2.
    • Change IP Address and DNS Servers using the Command Prompt

      Change IP Address and DNS Servers using the Command Prompt

      Note. You can use the netsh interface ipv4 set dnsservers name “YOUR INTERFACE NAME” source = dhcp command if you want the network interface to automatically fetch DNS settings from the DHCP server. Continuing with our example, this command will look like this: netsh interface ipv4 set dnsservers name “Wi-Fi” source = dhcp

      Conclusion

      Command line is a great tool to use when you want to change IP addresses and DNS servers. It’s faster and saves you the trouble of clicking through multiple windows and dialogs in the Control Panel interface just to go to the IPv4 Properties dialog and do the same.

      Was this guide helpful? Let us know by leaving your comment in the section below.

      –

Networking Tags:Conclusion

Post navigation

Previous Post: The 4 Best Wearable Translators
Next Post: HDG Explains: What Is Telnet?

Related Posts

  • Router vs Switch vs Hub vs Modem vs Access Point vs Gateway Networking
  • How Firefox’s Enhanced Tracking Protection Stops Websites From Spying On You Networking
  • HDG Explains: What Is a WiFi Booster & The Best Ones To Buy Networking
  • What Is The Cloud & How To Get The Most Out Of It Networking
  • How to Fix “Cannot renew IP address” in Windows Networking
  • A Breakdown of File Transfer Speeds Networking

Leave a Reply Cancel reply

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

  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • Linux
  • Linux Tips
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018

2021 Amazon Android ) Apple apps Best black browser change Chrome Closing words Concluding remarks Conclusion Delete Download Error Facebook Files Find Free) From games Google Mac make Music Netflix ( online Open Packaging Password phone? Screen sites Tips using Video Videos Watch Websites What With Working? your YouTube

  • How to Read Deleted WhatsApp Messages on Android How-To
  • 2 Chrome Address Bar Shortcuts to Create Google Calendar Events Google Software/Tips
  • Make Your Voice Sound Professional With These Quick Audacity Tips Software Reviews
  • Fast implementation of Google Analytics in Squarespace How-To
  • Visualize the Corona Virus growth in your Country on your iPhone How-To
  • 3 Best Online OCR Tools To Extract Text From Images

    3 Best Online OCR Tools To Extract Text From Images

  • Does Microsoft’s Windows File Recovery Work? We Tested It. Tools Review
  • How do I prevent screen tearing? and what is it Windows XP Tips

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
Go to mobile version