How To Find Out What My DNS Servers Address Is

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

How do I find out my DNS server addresses under Linux, UNIX, Apple OS X/macOS, MS-Windows operating system? What is my dns server IP address under MS-Windows operating systems? Can you specify a list of public DNS server for personal use or game consoles?

DNS is an acronym for Domain Name System. DNS is key to many network services run on the Internet or LAN (Local Area Network) such as:

  1. Internet browsing
  2. Mail server
  3. Web server
  4. Gaming
  5. Video streaming and more.

Almost all traffic on the Internets depends upon the DNS servers. Most ISP (Internet Service Provider) have their caching DNS server to reduce network load. But, how do you find out DNS server IP address? How do you find out current DNS server IP address? Under Linux, FreeBSD and all UNIX-like operating systems you have a file called /etc/resolv.conf. It is often known as the resolver configuration file. If you are using MS-Windows version 7 / 8 / 10 (or older Vista / NT / 2000 / XP / 98) then see below for how to find out DNS server address under MS-Windows operating systems.

How to find out what my DNS servers address are on Linux/Unix/macOS

The resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains information that is read by the resolver routines the first time they are invoked by a process.

Commend to find out your dns servers ip address under Linux/BSD/Unixish system

To see your DNS server address type the following cat command as shell prompt:
$ cat /etc/resolv.conf
OR use the less command/more command shell pagers:
$ less /etc/resolv.conf
Another option is to use the grep command/egrep command:

nameserver 203.54.1.20
nameserver 203.54.1.21

Where,

  • nameserver 203.54.1.20 : It is Name server IP address (in dot notation) of a name server that the resolver should query. All your application will use this IP address for DNS purpose.

Further, you can use the dig command and host command to verify that DNS working:
$ host sxi.io
$ dig nixcraft.com

Determining a Linux or Unix/macOS computer’s DNS Name or IP address

Check out related media

The following video tutorial shows you how to find out your dns server IP address assigned by an ISP router or dhcp server under Linux or Unix operating systems using both command line and graphical user interfaces:

Find Out DNS Server IP Address Under MS-Windows Version 8/7/Vista/XP/NT/2003

Click on Start button > Run > and Type command cmd > Press [enter] key

At DOS prompt type the command:
C:>ipconfig /all
You should DNS server IP address, and other information related to Windows networking:

Fig.01: Windows Operating Systems Find DNS Server Addresses

OR

  • You can Click on Start button > Settings > Network connections
  • Double click on Local Area Connection
  • Click on Properties button
  • Select Internet Protocol (TCP/IP)
  • Click on Properties button and Look for Preferred DNS Server:
Fig.02: Windows XP TCP/IP Properties – DNS Settings And IP Address

Public DNS Servers

You can use the following Google public DNS (IP Addresses) servers for game consoles, routers, wifi devices, mobile phones or any other purpose:

  • 8.8.8.8
  • 8.8.4.4
  • 1.1.1.1

They are free to all, pretty fast too and works with all sort of computers and game consoles.

See also:

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Related posts

Zuckerberg to Study Crypto in Quest to Fix Facebook

SXI ADMIN

Zooko Wilcox Envisions ‘Ambitious’ Changes for Zcash Cryptocurrency

SXI ADMIN

ZombieChain Comes Alive: Can Ethereum Sidechains Save the Dapps?

SXI ADMIN

ZoKrates Seeks to Bring Best of Zcash to Ethereum with Devcon Debut

SXI ADMIN

Zk-Starks? New Take on Zcash Tech Could Power Truly Private Blockchains

SXI ADMIN

Zk-Snarks Everywhere: Ethereum Privacy Tech Hits Tipping Point

SXI ADMIN

ZipZap to Offer Cash-for-Bitcoin Service at 28,000 UK Locations

SXI ADMIN

ZipZap Resumes Cash-to-Bitcoin Services for UK Shoppers

SXI ADMIN

ZipZap Raises $1.1 Million to Grow Global Bitcoin Payments Network

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More