From owner-freebsd-questions Wed Oct 29 18:15:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA05094 for questions-outgoing; Wed, 29 Oct 1997 18:15:10 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from cedb.dpcsys.com (cedb.dpcsys.com [206.16.184.4]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA05089 for ; Wed, 29 Oct 1997 18:15:07 -0800 (PST) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.5/8.8.2) with SMTP id CAA26490; Thu, 30 Oct 1997 02:15:00 GMT Date: Wed, 29 Oct 1997 18:15:00 -0800 (PST) From: Dan Busarow To: Brian Doyle 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, 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