What Is My DNS Server and Hot To Change DNS Server For Windows, Linux?
Dns Servers are very important part of the internet and computer networks. When DNS servers are down we can not use internet in a easy manner. DNS servers provides domain name to IP or vice versa resolution.
Windows operating system family provides
ipconfig command for general information gathering tool. ipconfig command without any parameter will show base configuration about the network of the operating system. Just issue following command into DOS command prompt. This will list all network configuration in detail with DNS related configuration.
> ipconfig /all
There may be multiple DNS servers. In this example our DNS server is our default router.
To set DNS server use Control Panel
We will use network interface configuration with GUI.
Open Network and Sharing Center
Open Network Adapter
Open Local Area Connection Properties
Open Internet Protocol Version
We can set from here preferred DNS Servers. Here is a list of popular DNS servers.
Linux provides alternative ways to get DNS server and set DNS server.
$ cat /etc/resolv.conf
The old friend resolv.conf is deprecated to edit by hand so new way to set DNS servers is resolv.conf. But we can get DNS server with cat.
Add DNS Server
We can add new DNS server to the
resolv.conf with interface configuration like below.
Add related lines to the interface static IP configuration.