LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-28-2004, 05:36 PM   #1
tisource
Member
 
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/dhcpcd-eth0.info 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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

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

route
ifconfig
etc...

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
baz2
Member
 
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
tisource
Member
 
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
dreambrother
Newbie
 
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...

thanks!
 
Old 10-31-2004, 07:47 PM   #6
tisource
Member
 
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.
 
  


Reply


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 02:42 PM.

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