How To Find Out What My DNS Servers Address Is
Q. How do I find out my DNS Server Addresses under Linux / UNIX / Windows operating system? What is my dns server under Windows? Can you specific public dns server for personal use?
A. DNS is key to many network services. Internet browsing, mail server, web server etc all depends upon DNS server. Most ISP (internet service provider) have their own caching dns server to reduce network load. But how do you find out DNS server IP address? How can I find out current DNS server IP address? Under Linux, FreeBSD and all UNIX like oses you have file called /etc/resolv.conf file. It is often know as resolver configuration file. If you are using Windows Vista / NT / 2000 / XP /98 etc then see below for how to find out DNS server address under MS-Windows operating systems.
Linux / UNIX Find Out Dns Server Addresses
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 following command as shell prompt:
$ cat /etc/resolv.conf
OR
$ less /etc/resolv.conf
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.
Find out dns server ip address under Windows 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:

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:
See also:
- Free public dns server for personal and business use.
- How to find and change Nintendo Wii DNS server IP address
- /etc/resolve.conf example
- Linux: How to setup as DNS client?
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Redhat network interface configuration
- How Do I Update The Root Hints Data File for BIND Named Server?
- How do I find out my DHCP server address?
- How do I find the url for my cgi-bin?
- DNS Name Resolution
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: c library, dns server, dns server address, dns server addresses, dns server ip address, dns server settings, dns servers, domain name system, internet browsing, internet domain name, internet domain name system, mail server, name server, resolver routines, server ip address



March 6th, 2007 at 8:10 pm
i tried ipconfig/all it work when you allredy have the dns address writen internet protocol properties but it does not work when you dont know your dns address.
please can you show me how to get the DNS of a new network that i dont have uts DNS server name but i have the IP and sbnetmask and gateway
April 17th, 2007 at 10:36 pm
i cant find my DNS i tryed what the overs said but it still wont let me find it i am trying to link my ps2 wireless to the internet i have an adapter but where as cable it done it all 4 u with wireless it wont find it i got it connceted but i still cant get on line coz i need both primary and secondery DNS coz i go 1 but it keeps saying i need the over 1 as well
April 25th, 2007 at 5:59 pm
Hi im am trying to connect my ps3 to the internet and its asking for my IP address, subnet mask, default router, primary dns ans secondary dns an i dont know were to find them im on a wired dsl connectin virgin if that helps
April 28th, 2007 at 3:12 am
hey guys if you want to find out what your dns server is then go to start and search cmd and then go to the command screen and type nslookup and hit enter and that should show you your dns server address
June 19th, 2007 at 7:37 pm
Hi, I am currently trying to connect my Playstation 3 to the internet but it isn’t working, when i try to test for an internet connection it tells me i have a ‘DNS error’ i have followed your instructions above to find my primary and secondary DNS numbers for the connection i am using but both boxes are blank.
It gives me my IP address and my subnet mask but not my preferred DNS sever or Alternate. Please could you tell me how in ‘Laymens’ terms as i don’t know anything about computers and i only found out 45 minutes ago what the hell DNS stood for.
Thankyou for any help.
June 19th, 2007 at 10:08 pm
Richard,
You can setup primary and secondary DNS numbers (IPs) as follows
208.67.222.222
208.67.220.220
See Step-by-step instructions here
July 27th, 2007 at 4:42 pm
heyy…wow, my god am i EVER having one hell of a time trying to hook $#@*en xbox live, jesus this is hillariouse, i have the stupid cord hooked up to the stupid modem and the stupid xbox, but when i go to “Join Xbox Live” it says “No Network Connection”, and when i go to “Test Connection”…everything connects until it gets to DNS server….it says something about failing, im soo confused, what in the blue hell is DNS..and why is my xbox not connecting to it….HEEEELLLLPPPP!!
August 3rd, 2007 at 4:49 pm
lol i kno i have the same problem i still odnt know how to find the primary and secondary ones
i tried everything but i only get 1 set which doesnt work!
i have no idea how to find both and i dont know why the 1 wont work!
i need help too…
August 8th, 2007 at 2:38 am
when ever i connect my xbox 360 to the modem everything passes but the dns so i go to run and put in cmd and gives me some dns servers and i try them all for primary and secondary but they wont work. can someone tell me how to find the primary and secondary dns on my computer????????
August 11th, 2007 at 9:31 am
when i try to connect my xbox 360 to my modem and run the test its stoped by the dns bit i can find 3 sequences i tried them all in different combonations nothing seems to work i duno which is primary and secondary help me please !!!!
August 23rd, 2007 at 8:22 pm
i followed your steps to find prefered dns number but when i clicked on properties it didnt show which one was prefered.it had been automatically set.
September 7th, 2007 at 2:01 am
this didn’t help me at all i need to find out my primary and secondary dns servers to be able to log on to xbox live with my xbox 360 elite so if you figure out how to do that then you let me know\
October 18th, 2007 at 12:42 am
Yea same here for the xbox live. i need to figure out the dns server code to play some halo 3 so hit me up if u know how to get it and that would be awesome
October 19th, 2007 at 1:40 pm
It wont let me join to xbox live because that stupid dns things the others are connecting can somebody please helo me before i throw it out of the window!!!!
November 6th, 2007 at 5:33 pm
Not sure why you guys are having such a hard time finding your primary/secondary dns, the commands have been giving above very clearly.
At the C:> you type:
C:\Documents and Settings\userx>ipconfig /all
it will then give you a listing of your computers IP address information including your default DNS info. If you have a router like a linksys or other it may give you the same IP as your default gateway. Simply input that into your Xbox or Ps3 for both lines if they require both.
example of the >ipconfig /all command output
IP Address. . . . . . . . : 10.142.254.1
Subnet Mask . . . . . . . : 255.255.0.0
Default Gateway . . . . . : 10.142.254.1
DNS Servers . . . . . . . : 10.142.0.10
10.142.0.11
November 16th, 2007 at 2:02 pm
In windows ipconfig /all will show dns server and dhcp server also. But, how to know DHCP server address in Linux?
December 10th, 2007 at 11:13 pm
I have the prob with my psp, and i put on my DNS and it still doesn’t work
December 12th, 2007 at 4:52 pm
I dont get it. My router was working fine a couple of days ago. I plug in all the ethernet cables that I needed correctly. All of the lights on my linksys router are all lighted up. When I test the connection on my xbox, it passes the ip address but it fails on the dns. Also I dont even have internet connection for my computer. Every setting is pretty much automatic due to I dont really know what to put it manually.
December 13th, 2007 at 12:51 am
i hook up my laptop tht has wireless internet capabilities with my 360 and when i try to sign up for to the DNS test it fails. i have tried eveXBOX LIVE the wired network and ip address pass but when it gets down to the DNS test, it FAILS!!!,i have tried everything i even did something to my computer to allow the dns to be accessed by all internet users which would include the 360. I dont even know how to find the DNS address on my computer ive looked everywhere i could think of. CAN ANYONE HELP ME OUT WITH THIS PLSSSS, ID REALLY APPRECIATE IT.thanks
o and if im having this problem with the wired networking then if i bought the $100 microsoft network adapter, would i just be running into the same problems and have just wasted my money(even though the thing is a rip off anyways!!!). Does the wireless networking adapter even need any setup or is it just plug in and play???
December 13th, 2007 at 1:12 am
i finally found the dns server screen but the only thing tht it shows is teh ip address the dns adress looks like this “DNS: . . . .”……… does anyone know how to get my dns adress to show up??
December 17th, 2007 at 6:46 am
uhh im trying to connect my wireless to my ps3 and i put in all my info that i got from the command promt and my ip address is succeeded but then the internet connection fails and says i have an error that occured during communication with the server. This is a DNS error.
any suggestions?
but i can connect to my neighbors belkin54g but it has a low signal so i wanna connect to my own
December 23rd, 2007 at 5:06 am
I’m trying to hook up my wii and every time I try to do a connection test it says internet setting incorrect. Yet my PC says it is correct. HELP!
December 31st, 2007 at 4:09 pm
wow, my internet for PS3 isn’t working i found my DNS and all but when i go to test it says there is still a problem i need help to play Call of Duty 4 online
December 31st, 2007 at 8:16 pm
ok i have the xbox 360 prob. my ip works but i cant get the dns to confirm. i have the primar but not the secondary. does anyone know how to get it?
January 3rd, 2008 at 8:35 pm
Omg thankyou so much i needed this addres for my xbox live thanks i av bin trying for days =]
January 5th, 2008 at 4:12 am
yo i got a ps3 and i cant keep it online. I get on for awhile but then it signs me out of the playstation network. When i try to sign back on it says that there is an error ( a dns error). I cant figure this out and im gettin really frusterated. So if you know what to do PLEASE HELP!!!!!
January 7th, 2008 at 6:15 am
A lot of post for such problem
Solution :
1. Find telephone number to your internet service provider and teach support, write it down on paper
2. Call to providers teach support, DNS adresses is the information that they shuld provide you on your request
3. Write it down on the same piece of paper
January 7th, 2008 at 9:01 pm
I can get evrything til Dns on my Xbox i need some help
January 8th, 2008 at 6:57 pm
ok i hav the same prob for ps3 this is exactly wat i done and i no loads of peeps have this prob.
1st. wireless
2nd. easy or custom (dunno)
3rd. wep key entered
4th. ip manual along with subnet and dns stuff
and default router and stuff.
5th. mtu auto (should i change)
6th. proxy server do not use (change?)
7th. upnp enable (dont change)
8th. settings list blah blah blah.
9th. results were ip adress succeded voila.
internet conection checking………longer then a last time gets ready to jump for joy………….uh…..(30 seconds later) fuck!!!!!!!!!!!!!! internet connection fail and thats that i need dns because it says dns error and im from ireland thanks.
January 8th, 2008 at 7:00 pm
the things that are definetly right are the wep key ip adress and the ssid. i not sure about the gateway or default router though. the dns now im definetly not sure… sorry for the laughin bits above im a junoir comedian and singer just tryn.
January 17th, 2008 at 11:20 am
I have found my dns numbers yet I still get an error saying that there was no response from my dns server what do I do now???? email me the answer to mawabernal@yahoo.com please
January 28th, 2008 at 6:02 pm
OK I am trying to set up a static IP address on one of my home PCs so that I can configure port forwarding on my router. To do that I need to know which DNS my IP provider uses. IP Config just gives me the internal router IP address fro DNS (192.168.1.1) and if I use that as my DNS address it does not work. I didn’t expect it to but I tried it anyway.
So I went to plan B and phoned my IP provider. They had absolutely no idea what I was talking about and advised my to speak to Netgear since they made my router! Seriously, somebody at Roadrunner knows the answer but I have no idea how to get through to them.
Any advice? Like ISP above I’m amazed that a simple task can be so difficult!
January 28th, 2008 at 7:16 pm
Tim, use following two DNS server IP - they are free and very fast
208.67.222.222
208.67.220.220
You need to open your router configuration page and add those IPs under DNS configuration
February 1st, 2008 at 3:50 am
I am having trouble hooking up my xbox live. How do i get my IP address?>
February 8th, 2008 at 4:52 am
Alright…
so i’m trying to hook up to xbox live.
i have everything up until the DNS.
i have my DNS but it askes for a secondary one.
how or where do i recieve my secondary DNS?
—-> please email me at dragnot_36@hotmail.com if you know————or jus reply on this page
February 27th, 2008 at 10:44 am
Hi,
Sorry to post this again but I am also having problems with my PS3.
I have entered all the information correctly both on Manual and automatic but still, for some reason, my PS3 won’t even obtain an IP address. Now, forgive me for my ignorance but I do not know too much about wireless routers or their settings!
Is there anyone that has had this problem and has been able to resolve the issue? My Router is a Netgear DG834.
Thanks!
February 29th, 2008 at 9:21 pm
rite! i have a ps3 40gig…. i want to set up my wireless connection… i have the following info already..:
IP Address.
Subnet Mask.
Default Router.
BUT NO BLOOMIN SECONDRY DNS SERVER!!
i realy am goin to throw the thing at a wall if i cant get it working soon !!!
please help
March 8th, 2008 at 4:36 pm
shan… exactly the same with me but i need both dns ffs wen i type
C:\>ipconfig /all
i press enter and it just makes a new line plz help!
March 13th, 2008 at 6:24 pm
i have a wireless modem and it wont let me connect to the madden online how do i do it does anyone know call me at 861-461-6676
March 14th, 2008 at 2:29 am
to find your dns server you can log into your router. go to http://www.routerlogin.net
it will ask for username and password. The default is–
username - admin
password - password
If that doesn’t work you can always call your isp and ask what your dns server is. it’s a question they answer all the time. hope this helps!
March 15th, 2008 at 9:42 am
when i type in command cmd the black box comes up with C> instead of C:\ so when i type in the rest it wont work!!! what shall i do because when i do the other idea it dosent show me my IP address.
March 19th, 2008 at 11:32 pm
I am having a problem with hooking my psp to the internet to play socom ftb2. I found my dns but when i test connection its says test failed. plz help me before i go insane.
March 22nd, 2008 at 6:13 am
I need help hooking up my ps3 to internet. I am having trouble finding my dns servers i can only find 1 but were can I find my second 1?
March 27th, 2008 at 1:25 am
My xbox 360 will not connect to the internet even though it has an fully working IP address. Also i’m using a MAC so it’s difficult. please help me. I cannot find out what my DNS address is.
April 3rd, 2008 at 1:02 pm
hey ,thanx i dont own a ps3 or a xbox but it worked for my psp thanx dude!!!!!!!
April 4th, 2008 at 10:05 am
i have managed to connect to the wireless connection. however, when i tried to use the internet or even the msn messenger, i cant enter and internet says tt im not connected to internet. and msn says there is a problem with my dns and key ports. so pls, help me. this problem has been like this since last month when my laptop has been reformatted due to school requirements.
PLEASE RESPOND. :] SERIOUSLY NEED HELP
April 10th, 2008 at 8:27 am
I found my DNS server in my modem’s int log. people check your router log on your dsl modem. PS I dont think the tec’s aat alot of Internet company’s know what there doing they must read out of a book or something and cant think outside the box. Thank god I studyed Cisco
April 24th, 2008 at 4:38 pm
well really all i did to connect to xbox live was i bought a wireless adaptor for my 360 and got a wireless router and what do u know it worked but there was a few problems like xbox live is curently unavailibe but thats what i did so mind as well try it.
April 30th, 2008 at 8:57 pm
can someone please help me! i know this is off the topic, but please help…ok this is my prob. with my wireless connection.
” after my laptop connects with my wireless router, why is that i can’y surf the net?” it keeps saying that “this page cannot be displayed”
its an actiontec modem/built in router..Actiontec WT704-WG.
weired part is that “when i try to connect my psp it also displays a message like “failed to communicate with dns server”..
Finally, i also tried putting “192.168.0.1″ on my address bar to configure my modem, but nothing happens or appears when i do that..
please help!!
May 9th, 2008 at 6:18 pm
perfect. exactly what i was looking for thanks. (never knew about the /all feature for ipconfig.
May 18th, 2008 at 5:58 pm
how da heel do i get my dns to work on my psp?
May 19th, 2008 at 7:03 am
Sir, I 200 Clients under Domain, i have two Domain I want to see what PC have under which Domains? But I want to see all clients at a time.
I want to see pc1 have domain IP 172.17.0.4
and PC2 have 172.17.0.7
Thanks
June 2nd, 2008 at 5:19 am
Dear,
What is a DNS Server?
June 19th, 2008 (3 weeks ago) at 6:00 pm
outstanding explanation
clear, helpful, and best of all it worked!!!
June 20th, 2008 (3 weeks ago) at 12:39 pm
i done everything for xbox live excpet DNS server i done /ipconfig/all thing i got DNS servers but they wont work so if anyone can help me post on this formun please thanks.
July 7th, 2008 (2 days ago) at 5:07 pm
yea i hve the same problem on July 3,i wuz playin DMC4 w/no problem later on durin the day it wuz not connecting 2 the network n it kept on askin 4 an IP address,Default router,primary n secondary dns.But yet i can still play my demoez no problem. Then it sayz couldnt obtain IP address n really i dnt kno wut the hell 2 do n i jus got it thiz yr.in Jan. or Feb. somebody plsz help me out i miss DMC4 im bout 2 set thiz freakin thing on fire T.T
Today at 2:23 am (5 hours ago)
hi can someone tell me why…when i download a song of lime wire i get 5-600 kbs, and when i try to open a web page it takes about 1-2 minutes?i cant figure this out, can someone help please i use windows vista and and im on a wireless network with a bunch of workers using the same network.