Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] dhcp client .. find gateway and dns values in use
  • From: Darryl Gregorash <raven@xxxxxxxxxxxxx>
  • Date: Fri, 05 May 2006 17:39:23 -0600
  • Message-id: <445BE22B.8080201@xxxxxxxxxxxxx>
On 05/05/06 14:32, Peter Van Lone wrote:
> On 5/5/06, Bruce Marshall <bmarsh@xxxxxxxxxx> 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.

< Previous Next >