From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Arrigo Triulzi Newsgroups: gmane.os.tru64.managers Subject: [SUMMARY] Tru64 4.0F behind an ADSL NATting router Date: Fri, 20 Jun 2003 14:16:57 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <16114.64313.174485.840214@umbra.northsea.sevenseas.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1056111461 9041 80.91.224.249 (20 Jun 2003 12:17:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2003 12:17:41 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Jun 20 14:17:39 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19TKpN-0002Jn-00 for ; Fri, 20 Jun 2003 14:17:13 +0200 Original-Received: (qmail 25272 invoked by uid 5); 20 Jun 2003 12:17:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25263 invoked by uid 49493); 20 Jun 2003 12:17:11 -0000 Original-Received: from arrigo@northsea.sevenseas.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-0.8/5.0):. Processed in 0.432489 secs); 20 Jun 2003 12:17:11 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 20 Jun 2003 12:17:11 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGS001A94SM3A@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 20 Jun 2003 08:17:10 -0400 (EDT) Original-Received: from tempest.northsea.sevenseas.org (tempest.northsea.sevenseas.org [195.82.120.105]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HGS007LA4SHYX@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 20 Jun 2003 08:17:08 -0400 (EDT) Original-Received: from umbra.northsea.sevenseas.org (d212-152-4-85.cust.tele2.ch [212.152.4.85]) by tempest.northsea.sevenseas.org (8.12.1/8.12.1/Sevenseas/2.12/BL/TLS) with ESMTP id h5KCH0ag005799 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 20 Jun 2003 13:17:03 +0100 (BST) Original-Received: from umbra.northsea.sevenseas.org (localhost [127.0.0.1]) by umbra.northsea.sevenseas.org (8.12.9/8.12.9/Sevenseas/1.1/Client/TLS) with ESMTP id h5KCGwFg005427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Jun 2003 14:16:58 +0200 Original-Received: (from arrigo@localhost) by umbra.northsea.sevenseas.org (8.12.9/8.12.9/Sevenseas/1.0/TLS) id h5KCGv5M005423; Fri, 20 Jun 2003 14:16:57 +0200 Original-To: Alpha OSF Managers X-Mailer: VM 7.16 under Emacs 20.7.2 Organisation: The Alchemist Owl X-Authentication-warning: umbra.northsea.sevenseas.org: arrigo set sender to arrigo@northsea.sevenseas.org using -f Xref: main.gmane.org gmane.os.tru64.managers:4615 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4615 Dear all, this is a summary without a question because before I wrote the question I worked through the answer... The problem is simple to explain: ----[ADSL]----[Tru64 box] 10.4.4.1 10.4.4.10 PWS 500au/Tru64 4.0F the ADSL modem/router is configured to offer NAT services, as such it also offers DNS and DHCP. The DHCP addresses are offered in the range 10.4.4.x, 201<=x<=229, the rest of the address space is free for static IPs. The obvious, trivial, setup for the Tru64 box is to give it a static IP (useful to use it as a server) and then everyone is happy. Unfortunately that is not the case. The DNS services from the ADSL box do _not_ include 10.in-addr.arpa for the RFC1918 network which means that you clearly have to use /etc/hosts for private name resolution and use the DNS for external addresses. Theoretically sufficient setup: /etc/hosts: 10.4.4.10 myalpha 10.4.4.1 adsl /etc/resolv.conf: nameserver 10.4.4.1 This is all good and well until on the Alpha you decide to try and resolve something using nslookup. Then nslookup complains that it can't find the name of the nameserver (because if you query the ADSL router for 1.4.4.10.in-addr.arpa it replies NXDOMAIN). The side-effect of this is that DNS is broken for pretty much everything - you can't get out of the NAT box as the alpha refuses to talk to the (only) nameserver. The fix is trivial (hence the lack of question to the mailing list): run a named server on the alpha. If you want you can set the forwarders to 10.4.4.1 (repeated a few times to give it time to fetch the data) and while you are at it setup the in-addr.arpa. zone to your liking. The setup is a basic "split-horizon" DNS service which knows about "internal zones". For reference you need to define (at least) 10.in-addr.arpa for it to work. You can also create a private internal domain but do be careful not to overshadow someone's real domain otherwise it will be forever unreachable to your boxes... Since the ADSL router does NAT it will happily NAT the DNS requests from the inside and the nameserver works as expected. For extra points you can setup the ADSL router to use DNS from the Alpha instead of providing DNS services. Since the ADSL router does not need DNS to boot up this has no nasty side-effects. Please note that my testing is restricted to 4.0F - I have absolutely no idea if this happens with 4.0G or 5.x. Hope this is of help to others, Arrigo