LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   On Fedora Core 2 what DNS server am I using? (https://www.linuxquestions.org/questions/linux-networking-3/on-fedora-core-2-what-dns-server-am-i-using-196538/)

jlepich 06-22-2004 05:02 PM

On Fedora Core 2 what DNS server am I using?
 
I'm obtaining my ip information and DNS server from DHCP...how do I find out what DNS server my system will query? I know I can do a nslookup and see what it is or even a tcpdump and figure it out...but what command will just give it to me? Can't I cat some file or something? I've googled and found stuff about an /etc/resolve.conf file but it seems that my system does not have an /etc/resolve.conf file.....

Any assistance is greatly appreciated!

-Jesse

demian 06-22-2004 05:11 PM

Should be in /etc/resolv.conf (at least on debian it is). ([edit] err, I skipped reading the part where you said it's not there [/edit]) If not check the output of dig some.server.com:

Code:

demian@dirac: ~ $ dig www.google.com
[lotsa stuff here]
;; Query time: 25 msec
;; SERVER: 212.6.108.140#53(212.6.108.140) # <- There's the server that answerd!!!
;; WHEN: Wed Jun 23 00:10:06 2004
;; MSG SIZE  rcvd: 99


Pete M 06-22-2004 05:26 PM

jlepich

Try looking for /etc/resolv.conf instead of /etc/resolve.conf I think you will find this file exists, try as root
Code:

/]# vi etc/resolv.conf
Pete


All times are GMT -5. The time now is 08:10 AM.