Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 1997 01:18:44 -0600 (CST)
From:      Brian Doyle <brian@arach-net.com>
To:        Dan Busarow <dan@dpcsys.com>
Cc:        Freebsd <FREEBSD-QUESTIONS@FreeBSD.ORG>
Subject:   Re: updating named...
Message-ID:  <Pine.BSF.3.96.971030011609.21190B-100000@tick.arach-net.com>
In-Reply-To: <Pine.UW2.3.95.971029175534.26011F-100000@cedb>

next in thread | previous in thread | raw e-mail | index | archive | help

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
> 
> <VirtualHost 206.16.184.154>
> 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
> </VirtualHost>
> 
> 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
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971030011609.21190B-100000>