Thanks James That looks just like what I want to do for this guy. I had not come across the Bind "view" directive before. I had a look at the Bind documentation and am now even more confused. Does anyone have a nice explanation of how to use the "view" directive? I guess this is what is known as split DNS isn't it?
Regards Richard -----Original Message----- From: James Gray [mailto:[EMAIL PROTECTED] Sent: Monday, 29 August 2005 2:26 PM To: Richard Luckhurst; Slug Subject: Re: [SLUG] Webserver behind ADSL router On Monday 29 August 2005 14:03, Jeff Waugh wrote: > <quote who="Richard Luckhurst"> > > > Has anyone ever set a web server up on an ADSL line anything like this? > > If so I would appreciate the benefit of your experience. Has anyone had > > experience in setting up the DNS for a situation like this? If so I would > > appreciate any help. > > There's no trickery involved. Just set the A records for the root domain > and the www subdomain to his ADSL's static IP... and you're done. > > - Jeff Just to add to Jeff's comments, if you need separate addresses returned by the DNS server depending on whether the request came from an internal or external client, you might want to look at ISC Bind's (ver 9+) "view" directive. Let's say your customer's webserver (www.foo.com) has the address 192.168.0.80 but it's external (internet static IP via NAT) is 1.2.3.4. You probably want internal users to have www.foo.com resolve to 192.168.0.80 but external users resolve to 1.2.3.4. ISC Bind's "view" will allow you to do this with a single config file and single named daemon - and it's actually quite simple to do. Have a look at the bind 9 admin reference: http://www.nominum.com/content/documents/bind9arm.pdf specifically sections 6.2.19 and 6.2.20 (page 80). HTH, James -- Weekend, where are you? -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
