Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-28-2004, 04:36 PM
|
#1
|
|
Member
Registered: Feb 2002
Posts: 322
Rep:
|
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!
|
|
|
|
10-28-2004, 04:54 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
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.
|
|
|
|
10-29-2004, 08:14 AM
|
#3
|
|
Member
Registered: Nov 2002
Posts: 73
Rep:
|
Just to add to what acid_kewpie said, you'll find it in /etc/resolv.conf -- it just got there by a different means.
|
|
|
|
10-30-2004, 08:22 PM
|
#4
|
|
Member
Registered: Feb 2002
Posts: 322
Original Poster
Rep:
|
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.
|
|
|
|
10-31-2004, 01:30 PM
|
#5
|
|
Newbie
Registered: Oct 2004
Distribution: debian
Posts: 9
Rep:
|
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!
|
|
|
|
10-31-2004, 06:47 PM
|
#6
|
|
Member
Registered: Feb 2002
Posts: 322
Original Poster
Rep:
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|