Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 1997 22:22:54 -0600 (CST)
From:      "Matthew D. Fuller" <fullermd@futuresouth.com>
To:        j.saito@wanadoo.fr
Cc:        rgireyev@yahoo.com, freebsd-questions@freebsd.org
Subject:   Re: How do I determine "hostname" ?
Message-ID:  <Pine.BSF.3.96.971216221842.13454A-100000@shell.futuresouth.com>
In-Reply-To: <199712162215.XAA18887@tamaya.wanadoo.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Dec 1997 j.saito@wanadoo.fr wrote:

> # netstat -nr                                                                   
> Routing tables                                                                  
>                                                                                 
> Internet:                                                                       
> Destination        Gateway            Flags     Refs     Use     Netif Expire   
> 127.0.0.1          127.0.0.1          UH          1       26       lo0          
> 195.6.71.4         193.252.160.71     UH          0        0      tun0          
Well, here's part of your problem.  You need 195.6.71.4 to be a default
route; there's no default route out of your box.  Here's what you need to
put in your /etc/ppp/ppp.linkup file:
MYADDR:
 add 0 0 HISADDR
That'll add the other end of your ppp link automatically as the default
route.

> # ping 195.6.71.4                                                               
> PING 195.6.71.4 (195.6.71.4): 56 data bytes                                     
> 64 bytes from 195.6.71.4: icmp_seq=0 ttl=255 time=315.404 ms                    
> 64 bytes from 195.6.71.4: icmp_seq=1 ttl=255 time=273.907 ms                    
> 
> # ping ftp.freebsd.org                                                          
> ping: cannot resolve ftp.freebsd.org: Host name lookup failure                  
As someone else suggested, also make sure that /etc/resolv.con lists your
ISP's nameserver

> If a hostname is useless for outgoing connection ( I don't expect any
> incoming one ), can I choose any hostname I like ? That'll be great !
Well, you can probably call yourself any hostname you want.
Make sure you set domain in /etc/resolv.conf is your ISP's domain, though;
otherwise the DNS resolution still won't work.

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|       FreeBSD; the way computers were meant to be       |
* "The only reason I'm burning my candle at both ends, is *
| that I haven't figured out how to light the middle yet."|
*    fullermd@futuresouth.com      :-}  MAtthew Fuller    *
|      http://keystone.westminster.edu/~fullermd          |
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971216221842.13454A-100000>