Simple DNS For Private LAN

Matthew Seaman m.seaman at
Wed Jun 28 19:56:19 UTC 2006

Drew Tomlinson wrote:
> I use virtual servers with Apache.   To access those from the inside, I
> have to use the same URL as is used on the outside.  So from the
> Internet, I need to resolve to my public IP but
> on the inside, I need it to resolve to 192.168.0.x.  Thus it seems to me
> that the .drew zone won't work for my setup.  Or am I missing something?
> Can I set up my server to be authoritative for
> instead of .drew but only be visible from the inside?  Obviously if it
> responded to queries from the Internet, I'd really have a mess.  What do
> you recommend?

The classic split horizon problem.  For DNS the answer is to use 'views':

In essence it is a mechanism for replying with different data depending
on who is asking the question.



Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP:         Ramsgate
                                                      Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list