1 What DNS you are using on Windows 10 8 7 XP
The DNSMasq DNS Server
DNSMasq is a free and DNS and DHCP server for small computer networks and isprovided with most Linux distributions.In my home installation it is installed on a raspberry pi 3 which I also useas an MQTT server and also runs node-red networking flows.
DNS Server Addresses
The addresses of the DNS servers are usually given to the client machine by aDHCP server, but can also be assigned manually.(see Static IP Address onWindows 10 tutorial for an example).Two DNS server addresses are normally assigned for redundancy purposes.On Windows you can view the addresses using the ipconfig command.
Setting Up and Using Your Own Local DNS Server
The process for using your own local DNS server to resolve local names is asfollows:
Before you install DNSMasq it is important that you machine has a fixed IPaddress.You can do this locally by edit the dhcp.conf file or usining the network GUIutility.However the best way is to configure it at the router level.Almost all routers let you assign a fixed IP address to a device.To install on Linux (e.g ubuntu, Raspberry Pi) use: sudo apt install dnsmasq.
Rogue DNS server
A rogue DNS server translates domain names of desirable websites (searchengines, banks, brokers, etc.) into IP addresses of sites with unintendedcontent, even malicious websites. Most users depend on DNS serversautomatically assigned by their ISPs. Zombie computers use DNS-changingtrojans to invisibly switch the automatic DNS server assignment by the ISP tomanual DNS server assignment from rogue DNS servers. Arouter’s assigned DNS servers can also be altered through the remoteexploitation of a vulnerability within the router’s firmware. When userstry to visit websites, they are instead sent to a bogus website. This attackis termed pharming. If the site they are redirected to is a malicious website,masquerading as a legitimate website, in order to fraudulently obtainsensitive information, it is called phishing.
Why DNS server is crucial and DNS priority works?
Let’s take an example with your net banking website. Technically you aretyping the domain name of the bank website (onlinesbi.com) in the web browserbut to complete the request and load the webpage, the domain name must beconverted to its IP address. Once the IP address conversion is done, thewebsites files and resources are loaded using the IP address of remote server.As said earlier, this conversion is performed by DNS servers but there is achance attackers can spoof the IP address to load the fake website if your DNSserver is compromised.This is why DNS server is very important and you should know what DNS you areusing on your device. Since DNS server can be modified at many levels, youneed to first know how a DNS server is picked before converting a website nameto IP address. * If you didn’t make any changes to DNS after setting up your internet, then you must be using the DNS server provided by your ISP. * If you make changes to the DNS server in your router, then your ISP DNS is ignored and all devices connected to the router will start using the DNS server of the router. * When you set custom DNS in your device (it can be a PC, Laptop, Mac, PS4, Android, iOS or any device with internet access), then it will use the device DNS and it will ignore both router and ISP DNS address.Device DNS takes the highest priority while ISP DNS has the least priority.Changing DNS in the router is useful when you have multiple devices connectedto it. Instead of changing DNS in every single computer, you can just changethe DNS settings in the router and all connected devices will start using thesame DNS server.
1. What DNS you are using on Windows 10/8/7/XP
Checking the DNS Servers on your Windows device is an easy process as italready has a built-in tool to lookup what DNS you are using. If you ask mewhat DNS am I using right now, then I would do the following steps to find DNSaddress: 1. Open Run by pressing “Win” and “R” keys simultaneously. 2. Type “cmd‘ and hit Enter to open Command Prompt. 3. Run the command `nslookup geekdashboard.com`You can replace geekdashboard.com with any domain of your choice. Afterrunning the nslookup up for any website, it shows the server and DNS addressyou are using.From the above screenshot, my Windows machine is using Hathway DNS server(22.214.171.124) which is the default DNS server of my ISP.Alternate way to check DNS servers you are using in Windows 1. Open Command Prompt. 2. Type the command `ipconfig /all` and press Enter. 3. You can find both Primary and Secondary DNS along with other details.
3. Find DNS server you are using in Linux
The user interface of Linux devices are very different from Windows and Macbut finding what DNS Servers you are using or checking your DNS settings areeasier than you think. In Linux, a resolver located at `/etc/resolv.conf` isused to find out DNS servers your device is using.You can use either `cat /etc/resolv.conf` or `grep /etc/resolv.conf` commandto find the DNS servers in Linux.
Method 2: Finding DNS server in iPhone using App:
Another method to find out the DNS Servers of iPhone is by downloading andinstalling the application called Network Analyser. Though free version withbottom banner ad does the job, you can still upgrade to pro version to removeads and support the developer.Once you download the app, open it and DNS Server IP shows the DNS server youriPhone is using.
6. What DNS is my router using
When you set up your new internet connection, you might have noticedtechnician configuring your router. They configure your WiFi name, password,static IP address (if they are providing one), DNS servers etc. Since we don’toften access our router settings, we continue to use the DNS servers our ISPis providing.In some cases, this DNS servers will be changed with custom third-partyservers to monitor traffic and restrict access to websites. Generally, networkadministrators in corporate offices, colleges, hostels do this to monitor whattheir staff or students are accessing. However, you can use custom DNS on anyinternet enabled device to bypass the router DNS.To view what DNS your router is using, you need to access router settings. IPaddress of a router admin page will be either 192.168.1.1 or 192.168.0.1(check your router manual to find this IP address).Enter username and password of your router to log in. If you are not sureabout username and password and if they are unchanged, try admin as usernameand leave password empty.In Dlink modems, DNS server addresses are visible at Setup – Internet Setuptab. Depending on the router manufacturer, you need to dig the router settingsto find the DNS server details. If you change DNS address here, all connectedgadgets will start using the new DNS servers expect the devices which areusing custom DNS at the device level.In the end, all I want to say is whether you want to hide the location of yournetwork, block some kind of content that you might not want to see or justwant to increase the speed of your network, then knowing what DNS servers youare using is key as it can help restrict the above-mentioned things byinstalling related software and proxy.Do you know any other methods to check DNS servers? Let us know in thecomments down below as it would be helpful to us and the readers as well.How to Fix DNS Server Not Responding ErrorsWhen you connect a device to your home network or a Wi-Fi hotspot withinternet access, the internet connection may fail to work for a variety ofreasons.Instructions in this article apply to Windows 10, Windows 8, and Windows 7.
Reasons Why You Cannot Connect to a DNS Server
One class of failures are related to Domain Name System — the distributed nameresolution service used by internet providers around the world. Windows 7,Windows 8.1 and Windows 10 computers may report the following error messagesin the Troubleshooting Problems found window: The DNS server isn’t responding Your computer appears to be correctly configured, but the device or resource (DNS server) is not responding The device will not be able to reach the internet when these failureconditions occur. These DNS server errors may appear for any of severaldifferent reasons. Step-by-step network troubleshooting steps can be used todiagnose and repair the problem as described below.
Handling DNS Provider Problems
Many people configure their home networks to automatically obtain DNS serveraddresses from their internet provider. When the provider’s servers or networksuffer an outage or are heavily loaded with traffic, their DNS services cansuddenly stop working. Customers must wait until the provider fixes thoseproblems before they can use the provider’s DNS.As an alternative to the private DNS servers supported by each provider,several providers, most notably Google and OpenDNS, offer free public DNSservers. A router administrator can switch their network’s DNS setup over froma private to a public DNS configuration by manually entering the public DNS IPaddresses into the router configuration settings.DNS settings can also be applied on the Windows device itself through theNetwork and Sharing Center. However, this approach usually will not work as apermanent solution because devices normally obtain and override their localsettings with those from the router through DHCP.