From owner-freebsd-questions Tue Dec 16 14:14:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA05066 for questions-outgoing; Tue, 16 Dec 1997 14:14:54 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from smtp1.wanadoo.fr (smtp.wanadoo.fr [193.252.19.36]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA05056 for ; Tue, 16 Dec 1997 14:14:48 -0800 (PST) (envelope-from j.saito@wanadoo.fr) From: j.saito@wanadoo.fr Received: from tamaya.wanadoo.fr (tamaya.wanadoo.fr [193.252.19.31]) by smtp1.wanadoo.fr (8.7.5/[France Telecom Interactive]) with ESMTP id XAA02693 ; Tue, 16 Dec 1997 23:14:43 +0100 (MET) Received: from tls3-31.abo.wanadoo.fr [193.252.155.31] by tamaya.wanadoo.fr for Paris Tue, 16 Dec 1997 23:15:55 +0100 (MET) Message-Id: <199712162215.XAA18887@tamaya.wanadoo.fr> To: CC: Date: Tue, 16 Dec 1997 23:13:52 -0600 Subject: Re: How do I determine "hostname" ? Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 1997-12-16 rgireyev@yahoo.com said: >A hostname is nothing but a name for the IP number for your machine. >It is useless when trying to access the outside world from your >machine but is very useful when the outside world is trying to >access your machine. Hostname on your machine allows other machines >on the network to find this machine by name instead of remembering >the IP number. >Your problems sound like a problem in getting PPP up and running, so >if you can expand on the steps you are tacking in connecting to your >ISP thne Brian can figure out right away what's going on :-) >Rudy. >---j.saito@wanadoo.fr wrote: >> I am a bit confused as to how I set up "hostname" on my PC. >> I only have a dial-up account. Is that my login name to the IP ? >> It seems, however, that it is not used to reach other sites but >> another one, which is apparently attributed dynamically as is my >> IP address. >> I tried to set up PPP following the PPP section of the handbook. >> I can reach my IP and pign it but when I ping other remote sites, >> I only get "Hostname lookup failure". What is wrong with the >> configuraiton ? The version of FreeBSD is 2.2.5. Any suggestions >> will be greatly appreciated. Thanks in advance. >> j.saito@wanadoo.fr (J. Saito) I was not precise in speaking of "IP", I meant "ISP". Here is how I proceeded : # ppp User Process PPP. Written by Toshiharu OHNO. Using interface: tun0 Interactive mode ppp ON ns> dial simplesite Dial attempt 1 of 1 Phone: 0836019301 dial OK! login OK! ppp ON ns> Packet mode. ppp ON ns> PPP ON ns> # ifconfig -a tun0: flags=8051 mtu 1500 inet 193.252.160.71 --> 195.6.71.4 netmask 0xffffff00 sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 # 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 # 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 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 ! junichi