Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] dhcp client .. find gateway and dns values in use
  • From: Bruce Marshall <bmarsh@xxxxxxxxxx>
  • Date: Fri, 5 May 2006 16:26:45 -0400
  • Message-id: <200605051626.46167.bmarsh@xxxxxxxxxx>
On Friday 05 May 2006 16:19, Peter Van Lone wrote:
> On 5/5/06, Bruce Marshall <bmarsh@xxxxxxxxxx> 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.

< Previous Next >
Follow Ups