Can I make it simpler?

Joseph S D Yao jsdy at center.osis.gov
Tue May 14 17:34:35 UTC 2002


On Tue, May 14, 2002 at 03:55:56AM -0700, Paul Littlefield wrote:
> 
> 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
> 

Of course.  Why do you think you need different zone files?  All of
these are in just one zone - test.co.uk.

-- 
Joe Yao				jsdy at center.osis.gov - Joseph S. D. Yao
OSIS Center Systems Support					EMT-B
-----------------------------------------------------------------------
   This message is not an official statement of OSIS Center policies.


More information about the bind-users mailing list