From owner-freebsd-questions Sun Apr 28 09:46:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA09565 for questions-outgoing; Sun, 28 Apr 1996 09:46:00 -0700 (PDT) Received: from wdl1.wdl.loral.com (wdl1.wdl.loral.com [137.249.32.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA09554 for ; Sun, 28 Apr 1996 09:45:58 -0700 (PDT) Received: from miles.sso.loral.com (miles.wdl.loral.com) by wdl1.wdl.loral.com (5.x/WDL-2.4-1.0) id AA16400; Sun, 28 Apr 1996 09:45:19 -0700 Received: by miles.sso.loral.com (4.1/SSO-SUN-2.04) id AA03183; Sun, 28 Apr 96 12:43:56 EDT Date: Sun, 28 Apr 1996 12:43:55 -0400 (EDT) From: Richard Toren X-Sender: rpt@miles To: questions@freebsd.org Subject: ?? host name resolution Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Gentlemen; I am in the process of learning HTML and such. I just installed the Apache httpd on my 2.1R system. I am using a ppp link to get to the net. The problem is "what name do I use in a URL to find my own server?" and "Is this Netscape going direct to DNS or FreeBSD's resolution?" My host.conf is : # host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp # default, try the /etc/hosts file hosts # then is to use the nameserver bind # If you have YP/NIS configured, uncomment the next line # nis Which I thought would use my local /etc/hosts file before going to the dns. When I give a URL of "http://localhost/psi/" I see (throuh tcpdump) a number of requests out the link for "home.netscape.com.", "home6.netscape.com.", "internic.net." and "www.localhost.com.". My /etc/hosts file contains the line: 127.0.0.1 localhost localhost.sso.loral.com for resolving 'localhost'. If I drop the ppp link, my server is found...? Any thoughts??? ==================================================== Rip Toren | The bad news is that C++ is not an object-oriented | rpt@miles.sso.loral.com | programming language. .... The good news is that | | C++ supports object-oriented programming. | | C++ Programming & Fundamental Concepts | | by Anderson & Heinze | ====================================================