From owner-freebsd-questions Wed Oct 29 23:17:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA20494 for questions-outgoing; Wed, 29 Oct 1997 23:17:50 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from tick.arach-net.com (tick.arach-net.com [206.156.231.129]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA20485 for ; Wed, 29 Oct 1997 23:17:48 -0800 (PST) (envelope-from brian@tick.arach-net.com) Received: from localhost (brian@localhost) by tick.arach-net.com (8.8.6/8.8.6) with SMTP id BAA21233; Thu, 30 Oct 1997 01:18:44 -0600 (CST) Date: Thu, 30 Oct 1997 01:18:44 -0600 (CST) From: Brian Doyle To: Dan Busarow cc: Freebsd Subject: Re: updating named... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 29 Oct 1997, Dan Busarow wrote: > On Wed, 29 Oct 1997, Brian Doyle wrote: > > I have already done this: > > > > ifconfig lo0 alias ip > > arp -s `/usr/libexec/linkaddr ip` pub > > We always > > ifconfig ed0 111.222.333.444 netmask 255.255.255.255 alias > > Using the ethernet (sustitute the appropraite device name) eliminates > the need for the arp -s, no big deal. The netmask is important though, > add that in order to create a host route. > > > What else do I need to do? Don't I need to configure named as well? > > Examples for a domain I just added, vcb.net. Change names and > IP addresses to match yours. :) > > In named.boot add a line for the new domain > > primary vcb.net db.vcb.net > > or if you have moved to 8.8.1 and named.conf (which you should) > > zone "vcb.net" { > type master; > file "db.vcb.net"; > }; > > > In /etc/namedb (or wherever you have you named zone files) add a > new zone file for the domain > > @ IN SOA ns.BEACH.NET. hostmaster.ns.BEACH.NET. ( > 1997102902 ; Serial > 302400 ; Refresh after 48 hours > 3600 ; Retry > 604800 ; Expire after 1 week > 86400 ) ; Minimum TTL 48 hours > > IN NS ns.BEACH.NET. > IN NS cedb.DPCSYS.COM. > > vcb.net. IN MX 10 mail.BEACH.NET. > www IN A 206.16.184.154 > > > In your httpd.conf file, /usr/local/etc/httpd/conf/httpd.conf by default, > add a virtual host section > > > ServerAdmin webmaster@vcb.net > DocumentRoot /usr/websites/vcb > ServerName www.vcb.net > ErrorLog logs/vcb/error_log > TransferLog logs/vcb/access_log > RefererLog logs/vcb/referer_log > RefererIgnore www.vcb.net > > > We add new domains via scripts running on the various servers, mail, DNS > apache. I use IP addresses in the VirtualHost section since there's no > guarantee (in our case) that the DNS will be updated before the web > server. Apache will die if you use a name and it cannot resolve the > name. > > Remeber to change the names, IP addresses and pathnames to reflect > your system :) > > > Also there is already a domain set up on our server and I need to move the > > domain to another machine on the same network. What do I need to do to > > delete the entry from the dns from the current server to the new server. > > Change the host IP address in the DNS zone file for that domain. > > Dan > -- > Dan Busarow 714 443 4172 > DPC Systems / Beach.Net dan@dpcsys.com > Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 > >