Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2004 12:06:30 -0400
From:      David Pratt <fairwinds@eastlink.ca>
To:        freebsd-questions@FreeBSD.ORG
Subject:   DNS on LAN
Message-ID:  <0EF11E3E-7376-11D8-A415-000A27B3B070@eastlink.ca>
In-Reply-To: <003501c40779$7b875340$6400a8c0@cab421>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0EF11E3E-7376-11D8-A415-000A27B3B070>