From owner-freebsd-questions Mon May 20 17:27:32 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA02399 for questions-outgoing; Mon, 20 May 1996 17:27:32 -0700 (PDT) Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA02390 for ; Mon, 20 May 1996 17:27:23 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net id au04299; 21 May 96 1:23 +0100 Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa06352; 21 May 96 0:30 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.7.5/8.6.12) id WAA01990; Mon, 20 May 1996 22:13:55 GMT Date: Mon, 20 May 1996 22:13:55 GMT From: James Raynard Message-Id: <199605202213.WAA01990@jraynard.demon.co.uk> To: gea@masternet.it CC: questions@freebsd.org In-reply-to: <31A02ED6.7EB6@masternet.it> (message from Beck Peccoz Amedeo on Mon, 20 May 1996 10:35:34 +0200) Subject: Re: ppp not resolving names Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> Beck Peccoz Amedeo writes: > > This is a multi-part message in MIME format. > --------------122922847688 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > I'm running ppp, but I can't have name resolved, other than the ones specified in > /etc/hosts, it seems it can't reach any name resolver. note that if I give directly IPs > everything seems to work (ping, telnet..). [snip] > Attached are my ppp configuration files and my /etc/sysconfig. The key is in the contents of the /etc/hosts, /etc/host.conf and /etc/resolv.conf files. Assuming you have a standalone machine, and are not running a nameserver, they should look something like this:- /etc/hosts ~~~~~~~~~~ 127.0.0.1 localhost aaa.bbb.ccc.ddd myhost.mydomain where myhost.mydomain is the fully-qualified host name, eg jraynard.demon.co.uk in my case, and aaa.bbb.ccc.ddd is its IP address. /etc/host.conf ~~~~~~~~~~~~~~ hosts bind /etc/resolv.conf ~~~~~~~~~~~~~~~~ domain mydomain nameserver www.xxx.yyy.zzz Where mydomain is the domain name, eg demon.co.uk in my case, and www.xxx.yyy.zzz is the IP address of the nameserver (if there is more than one nameserver, put them on separate lines). -- James Raynard, Edinburgh, Scotland jraynard@dial.pipex.com james@jraynard.demon.co.uk