dhcp client .. find gateway and dns values in use
SUSE10, KDE -- how do I determine what gateway and dns server values a dhcp client has picked up? In gnome, there is a handy little icon in the system tray ,,, ifconfig does not say, yast network card info only shows that dhcp is enabled for hostname, ipaddress, gateway and DNS servers. apparently the google in me is weak, as I can find the how to do this --- nowhere. P
On Friday 05 May 2006 16:06, Peter Van Lone wrote:
SUSE10, KDE --
how do I determine what gateway and dns server values a dhcp client has picked up? In gnome, there is a handy little icon in the system tray ,,,
ifconfig does not say, yast network card info only shows that dhcp is enabled for hostname, ipaddress, gateway and DNS servers.
apparently the google in me is weak, as I can find the how to do this --- nowhere.
P
route -n should do it for you. Look for the entry with 'UG' within.
On 5/5/06, Bruce Marshall
route -n should do it for you. Look for the entry with 'UG' within.
excellent .. that gives me the gateway. How about the dns server that it is picking up? Anyway to discover what that is? I'm kind of surprised there is no handy k-something util for displaying this info ... P
On Friday 05 May 2006 16:19, Peter Van Lone wrote:
On 5/5/06, Bruce Marshall
wrote: route -n should do it for you. Look for the entry with 'UG' within.
excellent .. that gives me the gateway.
How about the dns server that it is picking up? Anyway to discover what that is?
I'm kind of surprised there is no handy k-something util for displaying this info ...
P
The DNS would be in /etc/resolv.conf That file either gets re-written when a DHCP address is picked up or it can be static if you've set it up that way.
On 5/5/06, Bruce Marshall
The DNS would be in /etc/resolv.conf
That file either gets re-written when a DHCP address is picked up or it can be static if you've set it up that way.
cool -- didn't occur to me it would write that each time ... I think of that as being "static assignments". Thanx again, Bruce ...
On 05/05/06 14:32, Peter Van Lone wrote:
On 5/5/06, Bruce Marshall
wrote: The DNS would be in /etc/resolv.conf
That file either gets re-written when a DHCP address is picked up or it can be static if you've set it up that way.
cool -- didn't occur to me it would write that each time ... I think of that as being "static assignments".
Thanx again, Bruce ...
If you are using dhclient, "cat /var/lib/dhcp/dhclient.leases". This file tends to get rather long, as expired leases are kept in it for some time. If you are using dhcpcd, "cat /var/lib/dhcpcd/dhcpcd-<iface>.info", where <iface> is the network interface, eg eth0, wlan0, etc.
participants (3)
-
Bruce Marshall
-
Darryl Gregorash
-
Peter Van Lone