Scripting Help

Stephen Carville stephen at totalflood.com
Mon Apr 18 03:04:14 UTC 2005


bill at randomdog.net wrote:
> I sorry if this is a littler off topic but...
> 
> My company recently acquired about 80 domains and I've been tasked with
> setting up DNS for these domains.
> 
> They will all point to the same IP address. Does any one know of a script
> that with help with setting up all of the domains without having to key 80
> new db files?

Sure.  Just create one file.  I manage several "marketing" domians that
all have the same informatiom.  A example:

$TTL     3600
@        IN SOA dns.totalflood.com. domainadmin.totalflood.com. (
         7
         3H
         15M
         1W
         3600 )

                IN NS      dns
                IN NS      dns2

                IN MX      10 mail
                IN MX      20 mail2

@               IN TXT     "v=spf1 ip4:65.223.121.224/28"

@         900   IN A       65.223.121.227
dns             IN A       12.47.198.108
dns2            IN A       65.223.121.228
www       900   IN A       65.223.121.227
mail      900   IN A       65.223.121.228
mail2     900   IN A       65.223.121.227

Either reference the same filename for each zone in named.conf or create
symlinks from the filenames you do reference.

> Thanks in Advance
> 
> Bill Heese
> Senior Macintosh LAN Administrator
> Conair Corporation
> 
> 
> 


-- 
Stephen Carville <stephen at totalflood.com>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602



More information about the bind-users mailing list