From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 22:59:16 2003 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 8ECBE37B401 for ; Sun, 6 Jul 2003 22:59:16 -0700 (PDT) Received: from mx1.au.itouchnet.net (nat2.au.itouchnet.net [144.135.23.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AA9143FA3 for ; Sun, 6 Jul 2003 22:59:15 -0700 (PDT) (envelope-from ajthomson@optushome.com.au) Received: from nobody by mx1.au.itouchnet.net with scanned_ok (Exim 3.36 #1) id 19ZP1t-000D6c-00 for freebsd-questions@freebsd.org; Mon, 07 Jul 2003 15:59:13 +1000 Received: from athomson.prv.au.itouchnet.net ([192.168.13.55]) by mx1.au.itouchnet.net with esmtp (Exim 3.36 #1) id 19ZP1s-000D6V-00 for freebsd-questions@freebsd.org; Mon, 07 Jul 2003 15:59:12 +1000 From: Andrew Thomson To: freebsd-questions@freebsd.org Content-Type: text/plain Message-Id: <1057557552.38814.11.camel@athomson.prv.au.itouchnet.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 07 Jul 2003 15:59:12 +1000 Content-Transfer-Encoding: 7bit X-Checked: Scanned for any viruses and unauthorized attachments at mx1.au.itouchnet.net X-iScan-ID: 50378-1057557552-97399@mx1.au.itouchnet.net version $Name: REL_2_0_2 $ Subject: funky dns required 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: Mon, 07 Jul 2003 05:59:16 -0000 I currently have a caching nameserver on my local domain that really just caches and forwards to my primary nameserver. A lot of laptop users connect to the public ip of my mailserver as this is what they'd use if they were out of the office. However when they are in the office, it doesn't work so well. I've got some double nat magic on the firewall to attempt to overcome the problem however it just doesn't seem to work so well. As soon as I change the mailserver to the internal ip for these laptop users, everything works great. However having the laptop users change this everytime is not a workable solution. What I want to do is setup on my caching nameserver something so that when the laptop users requests the public name of my mailserver it acutally returns the internal ip. Everyone's happy! I could make the caching nameserver a master for the public domain of my mailserver however I would also have to keep updating every other host on the domain. Can I change the dns for this one host?? mailserver.mydomain.com = mailserver.int.mydomain.com = And there's lots of other hosts on mydomain.com. I want my caching nameserver to resolve mailserver.mydomain.com to as the only hosts querying this nameserver would be internal hosts anyway! Can I just be a master for a host??? zone "mailserver.mydomain.com" { type master; file "master/mailserver.mydomain.com"; }; Long winded I know.. hopefully everything's clear!! Thanks, ajt.