Can I make it simpler?
dbotham at edeltacom.com
dbotham at edeltacom.com
Wed May 15 13:05:30 UTC 2002
|---------+------------------------------>
| | Paul Littlefield |
| | <paul.littlefield at b|
| | igfoot.com> |
| | |
| | 05/15/2002 03:37 AM|
| | |
|---------+------------------------------>
>------------------------------------------------------------------------------------------------------------------------------|
| |
| To: dbotham at edeltacom.com |
| cc: |
| Subject: Re: Can I make it simpler? |
>------------------------------------------------------------------------------------------------------------------------------|
Hi
Thanks for replying.
Apologies but my example wasn't very good.
What I actually meant to wrote was something like...
first.test.co.uk. IN A 192.168.0.9
second.website.com. IN A 192.168.0.9
third.website.org. IN A 192.168.0.9
where all the test website domain names are quite different.
Can I setup a zone for all my locally run websites, instead of creating a
separate zone for each one?
No, If the domains are different, then, the Zones are different. You may
want to write a perl script to handle zone creation.
Thanks for your help!
PAULLY
At 17:15 14/05/2002, you wrote:
>Paul,
>
>If test.co.uk is your domain, then yes, your A records:
>
>first.test.co.uk. IN A 192.168.0.9
>second.test.co.uk. IN A 192.168.0.9
>third.test.co.uk. IN A 192.168.0.9
>
>
>would do exactly what you are looking for. However, with all the
hostnames
>referencing the same IP, your apache config would have to use header
>parsing to direct each request to the correct site depending on the domain
>name used...
>
>
>Hope this helps.
>
>Dave...
>
>
>|---------+---------------------------->
>| | paul.littlefield@|
>| | bigfoot.com (Paul|
>| | Littlefield) |
>| | Sent by: |
>| | bind-users-bounce|
>| | @isc.org |
>| | |
>| | |
>| | 05/14/2002 06:55 |
>| | AM |
>| | |
>|---------+---------------------------->
>
> >
------------------------------------------------------------------------------------------------------------------------------|
> |
> |
> | To: comp-protocols-dns-bind at isc.org
> |
> | cc:
> |
> | Subject: Can I make it
> simpler?
> |
>
> >
------------------------------------------------------------------------------------------------------------------------------|
>
>
>
>
>
>Hi
>
>I have a 6 machine local network on the address range 192.168.0.
>
>192.168.0.1 - Netgear Router
>192.168.0.3 - Windows 98
>192.168.0.5 - Windows Me
>192.168.0.9 - Windows 2000
>192.168.0.10 - Linux Client
>192.168.0.12 - Linux Server (DHCP,DNS,Apache,PERL,Sendmail)
>
>I run test websites on my Linux Server which has DNS running quite
>happily. All the different types of clients can find the test
>websites.
>
>As I understand it, for each website I want to test locally, I have to
>create a separate DNS file for BIND. Here is what I currently have
>(using examples)...
>
>/etc/named.conf:
>zone "test.co.uk" {
> type master;
> file "test.co.uk.hosts";
>};
>
>/var/named/test.co.uk.hosts:
>$ttl 38400
>test.co.uk. IN SOA localhost. root.localhost. (
> 1021366364
> 10800
> 3600
> 604800
> 38400 )
>test.co.uk. IN NS localhost.
>test.co.uk. IN A 192.168.0.9
>
>...but is there a simpler way to create entries for all the test
>websites IN JUST ONE FILE?
>
>e.g.
>
>first.test.co.uk. IN A 192.168.0.9
>second.test.co.uk. IN A 192.168.0.9
>third.test.co.uk. IN A 192.168.0.9
>
>They will all run from the same apache machine.
>Hope you can help!
>
>PAULLY
More information about the bind-users
mailing list