From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 08:07:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2782B16A4CE for ; Thu, 11 Mar 2004 08:07:42 -0800 (PST) Received: from mx4.eastlink.ca (smtpin.eastlink.ca [24.222.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id E704E43D31 for ; Thu, 11 Mar 2004 08:07:41 -0800 (PST) (envelope-from fairwinds@eastlink.ca) Received: from eastlink.ca ([24.224.184.110]) by mx4.eastlink.ca (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HUF004TC62TNS@mx4.eastlink.ca> for freebsd-questions@FreeBSD.ORG; Thu, 11 Mar 2004 12:06:29 -0400 (AST) Date: Thu, 11 Mar 2004 12:06:30 -0400 From: David Pratt In-reply-to: <003501c40779$7b875340$6400a8c0@cab421> To: freebsd-questions@FreeBSD.ORG Message-id: <0EF11E3E-7376-11D8-A415-000A27B3B070@eastlink.ca> MIME-version: 1.0 X-Mailer: Apple Mail (2.553) Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT Subject: DNS on LAN X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 16:07:42 -0000 Hi. I have just set up a small LAN. I am using an old pentium computer as a firewall using IPCop (192.168.1.1) as a gateway to the web. It uses a dynamic IP from my ISP so all the machines have web access. I have 3 other machines behind the firewall. I have set up a FreeBSD 4.9 server (192.168.1.2) that I want to use to develop and test my PHP and Python applications. The other machines (a Mac and Windows machine) obtain their IP between 192.168.200 - 192.168.250. I have a domain name registered that is currently pointing to a host that I am using for my live site. So question is how to use my domain name behind my firewall in my LAN with my server for development. I don't know how to do this. I want to be able to get my server on my browser something like this: server01.mydomain.com. ( mydomain substituted for my actual domain) I have read the DNS chapter in the FreeBSD book but I am just as confused as ever in what I need to do to achieve this. I have named my server the following: server01 and in my original configuration when I installed FreeBSD provided a fully qualified name of server01.mydomain.com (mydomain substituted for my actual domain). my hostname file currently looks like this: ::1 localhost 127.0.0.1 localhost 192.168.1.2 server01 server01.mydomain.com when I type hostname at command line I get server01.mydomain.com I have this line in my rc.conf file from the original installation: hostname="server01.mydomain.com" Any help greatly appreciated. Regards, Dave