About Linux FAQ

Browse More FAQs:

How To Find Out What My DNS Servers Address Is

Posted by Vivek Gite [Last updated: June 16, 2008]

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:

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:

Discussion on This FAQ

  1. Daywalker Says:

    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

  2. Ryan S Says:

    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

  3. shaun Says:

    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

  4. chris Says:

    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

  5. Richard Says:

    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.

  6. vivek Says:

    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

  7. Brandon Says:

    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!!

  8. joey Says:

    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…

  9. Bryan Says:

    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????????

  10. jake Says:

    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 !!!!

  11. raz Says:

    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.

  12. kevin Says:

    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\

  13. Austin Says:

    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

  14. Jordan Says:

    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!!!!

  15. zendev Says:

    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

  16. Nabin Limbu Says:

    In windows ipconfig /all will show dns server and dhcp server also. But, how to know DHCP server address in Linux?

  17. steve Says:

    I have the prob with my psp, and i put on my DNS and it still doesn’t work

  18. Bryant Says:

    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.

  19. kyle Says:

    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???

  20. kyle Says:

    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??

  21. Jordyn Says:

    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

  22. C.D. Says:

    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!

  23. Boris Says:

    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

  24. Josh Says:

    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?

  25. simon.j Says:

    Omg thankyou so much i needed this addres for my xbox live thanks i av bin trying for days =]

  26. jdub tommy Says:

    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!!!!!

  27. ISP Says:

    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

  28. matt K Says:

    I can get evrything til Dns on my Xbox i need some help

  29. Anthony Says:

    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.

  30. Anthony Says:

    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.

  31. Manny Says:

    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

  32. Tim Says:

    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!

  33. vivek Says:

    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

  34. Quincy Says:

    I am having trouble hooking up my xbox live. How do i get my IP address?>

  35. Léger Says:

    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

  36. Benn Wood Says:

    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!

  37. shan Says:

    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

  38. Glen Says:

    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!

  39. mike Says:

    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

  40. Sage Says:

    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!

  41. Nick Says:

    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.

  42. Trey Says:

    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.

  43. Jesus Says:

    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?

  44. Sam Says:

    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.

  45. RONALDO Says:

    hey ,thanx i dont own a ps3 or a xbox but it worked for my psp thanx dude!!!!!!!

  46. LAUCE Says:

    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

  47. Troy Says:

    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

  48. Bret Says:

    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.

  49. masum Says:

    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!!

  50. Andrew Says:

    perfect. exactly what i was looking for thanks. (never knew about the /all feature for ipconfig.

  51. michael Says:

    how da heel do i get my dns to work on my psp?

  52. Muhammad Abrar Says:

    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

  53. Prakasam Says:

    Dear,

    What is a DNS Server?

  54. Tom Says:

    outstanding explanation
    clear, helpful, and best of all it worked!!!

  55. ryan Says:

    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.

  56. Chi-Chi Says:

    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

  57. barry Says:

    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.

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!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.