From owner-freebsd-questions Tue Dec 16 20:23:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA05584 for questions-outgoing; Tue, 16 Dec 1997 20:23:07 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA05569 for ; Tue, 16 Dec 1997 20:23:01 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: from shell.futuresouth.com (mail.futuresouth.com [207.141.254.21]) by shell.futuresouth.com (8.8.8/8.8.8) with SMTP id WAA13537; Tue, 16 Dec 1997 22:22:54 -0600 (CST) Date: Tue, 16 Dec 1997 22:22:54 -0600 (CST) From: "Matthew D. Fuller" To: j.saito@wanadoo.fr cc: rgireyev@yahoo.com, freebsd-questions@freebsd.org Subject: Re: How do I determine "hostname" ? In-Reply-To: <199712162215.XAA18887@tamaya.wanadoo.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*