Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-28-2004, 05:36 PM   #1
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
Linux DHCP information for DNS

This is probably a really stupid question, but I can't seem to find an answer. I would like to know how to view information given to a linux client via DHCP, especially DNS information.

I know you can hard code DNS info in the /etc/resolv.conf file, and you can view the IP via ifconfig, but how do you view what DNS servers your DHCP handed to you, without digging through your dhcp log (/var/lib/dhcpcd/ on mine).

I'm running SuSE 9.1 on a laptop, using the dhcpcd client.

Thank you!
Old 10-28-2004, 05:54 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
you'll find it in the same places as a static ip, they just got there from a different means...


i would think that for a one shot you can probably also run your dhcp client in some form of debug mode, as there are a few other things, like ntp servers etc.. that got put away in places you wouldn't expect.
Old 10-29-2004, 09:14 AM   #3
Registered: Nov 2002
Posts: 73

Rep: Reputation: 15
Just to add to what acid_kewpie said, you'll find it in /etc/resolv.conf -- it just got there by a different means.
Old 10-30-2004, 09:22 PM   #4
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Thank you for the info...

By the way I found the following command gives me all the information I need:

ifstatus eth0

I wasn't aware of the command, and actually found it by accident after I got your responses.

Thanks again for your help.
Old 10-31-2004, 02:30 PM   #5
Registered: Oct 2004
Distribution: debian
Posts: 9

Rep: Reputation: 0
hi tisource,

do you need to install certain packages to use the ifstatus command? i only get a "command not found " message.

i'm on debian sarge btw...

Old 10-31-2004, 07:47 PM   #6
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
I dunno.... I didn't install anything.

I'm running SuSE 9.1. I'm not sure where the ifstatus command comes from....

I believe the command is also available on Mandrake also.... not sure on Red Hat or other distribs.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP RH-linux-client, windows-server, DNS-registration not happening armadilloman Linux - Networking 5 01-12-2009 09:53 AM
Linux DNS / DHCP server helppp shane200_ Linux - Networking 2 07-04-2005 11:14 PM
Linux router (DHCP, DNS) + Win XP homa2001 Linux - Networking 5 02-22-2005 11:23 PM
Linux DHCP/Windows 2k3 DNS and ddns SBanzai Linux - Networking 0 11-17-2004 05:40 PM
XP Box won't take DHCP information or an IP from Linux gateway Diademed Linux - Newbie 2 10-22-2004 06:47 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration