Re: Unable to ping hostname?
From: David Efflandt (efflandt_at_xnet.com)
Date: 11/28/03
- Next message: G Lam: "LDAP authentication?"
- Previous message: Robert Mark Bram: "Unable to ping hostname?"
- In reply to: Robert Mark Bram: "Unable to ping hostname?"
- Next in thread: Robert Mark Bram: "Re: Unable to ping hostname?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Nov 2003 03:03:32 +0000 (UTC)
On Fri, 28 Nov 2003, Robert Mark Bram
<relaxedrob@remove.this.optusnet.com.au> wrote:
> I have used hostname to give my computer a name, yet I am unable to ping
> it:
>
> $ cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
>
> ~
> $ hostname
> dijong
>
> ~
> $ ping dijong
> ping: unknown host dijong
>
> Should the hostname appear in the hosts file? I am using DHCP to obtain an
> IP address..
It would only be in the hosts file if you put it there. Since you
apparently do not have a static IP to assign it to, you could use an extra
loopback IP (see: man hosts):
127.0.0.2 dijong.localdomain dijong
-- David Efflandt - All spam ignored http://www.de-srv.com/
- Next message: G Lam: "LDAP authentication?"
- Previous message: Robert Mark Bram: "Unable to ping hostname?"
- In reply to: Robert Mark Bram: "Unable to ping hostname?"
- Next in thread: Robert Mark Bram: "Re: Unable to ping hostname?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|