From owner-freebsd-questions@FreeBSD.ORG Sun Jan 1 22:47:15 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12F3D106564A for ; Sun, 1 Jan 2012 22:47:15 +0000 (UTC) (envelope-from roquesor@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 981238FC13 for ; Sun, 1 Jan 2012 22:47:14 +0000 (UTC) Received: by werb13 with SMTP id b13so13318509wer.13 for ; Sun, 01 Jan 2012 14:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=sLGpHJUSIY5pn+RCJQOojbykbLzXadxTAESfMuL+ukk=; b=HFoXUUT33qYg+BzL5iBM6ShFr4UcPG7QuSTZinC/5insyUA6fIyfba5hQr7B8vc4Hg B57jf2rVQRedOtMO/+kQe22hncMZoPsQvqn+7KbTL/5YVFiC2cGE7stlBV8TnP5VFbHB rsQYcv8uhoCGiXSdrdUwvBGNE+i69NGmHQ55Y= Received: by 10.216.132.141 with SMTP id o13mr25436083wei.58.1325458032519; Sun, 01 Jan 2012 14:47:12 -0800 (PST) Received: from localhost ([80.31.138.65]) by mx.google.com with ESMTPS id fg15sm48327156wbb.7.2012.01.01.14.47.10 (version=SSLv3 cipher=OTHER); Sun, 01 Jan 2012 14:47:11 -0800 (PST) Date: Sun, 1 Jan 2012 23:47:08 +0100 From: Walter Alejandro Iglesias To: freebsd-questions@freebsd.org Message-ID: <20120101224708.GA44456@chancha.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Subject: Re: DNS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 22:47:15 -0000 On Sun, Jan 01, 2012 at 12:51:42PM -0800, Waitman Gobble wrote: > On Sun, Jan 1, 2012 at 12:20 PM, Daniel Lewis > wrote: > > > > > Im new to freebsd 8.2 and the unix world. How do i setup dns to support my > > domain > > > > > Hi Daniel, > > You probably want to use ISC bind in /usr/ports/dns > > I recommend you read the O'Reilly book DNS and BIND. > > > Basic process - > > > Install and configure bind. If possible set up on two or more machines/ip. > IMHO it's less hassle to set up duplicate masters and rsync changes from > your 'main' install instead of setting up master/slave configurations. > > create zone file for your domain, ie > > $TTL 86400 > example.com. IN SOA ns1.example.com. ns@example.com. ( > 2012010210 > 28800 > 7200 > 1209600 > 86400 ) > example.com. NS ns1.example.com. > example.com. NS ns2.example.com. > example.com. MX 0 mail.example.com. > example.com. A 192.168.0.133 > www.example.com. A 192.168.0.133 > * IN CNAME www.example.com. > > cname is good for people who enjoy making typos like wwww and ww > > > add your domain zone file to named.conf, ie > > zone "example.com" IN { > type master; > file "example.com.hosts"; > }; > > > reload nameserver > > rndc reload > > export your nameservers to root ns, this process varies for registrar - > look for "use my own nameserver" or "create nameservers based on domain" in > your registrar help docs. Maybe you can contact internic/nsi directly > instead (?). Back in the old days users just spread around copies of the > hosts file. > > Have fun. > > Waitman Gobble > San Jose California USA Hello Waitman, Time ago I made the attempt to setup my own DNS in the same machine I had my web server running. DNS was the only thing I was not able to automatically update in the system with my scripts each time a new customer purchased a service. It would be wonderful for me if you or anyone here at least confirm me if it is really possible. I read bind9 manuals and learned how to write my zones in the way you show above. But I couldn't get it working. Finally I assumed that DNS should be run in a different machine. Since then I use freedns.afraid.org. At this time I had to get the job done so I left this subject pending. If it is really possible I ignore what I could missed, I tried hardly. I even asked in a bind mailing list and some guys implied, without giving me details, that it will not propagate. Perhaps, at that time, I failed in doing something related to what you explain in your 3rd paragraph. And now, for all the list: honestly I am glad to have found this place. It is not common to find in mailing list and forums (included freebsd forum) this level of help, discussion and affable treat, (no, I am not telling this because the "happy new year", I am being objective :-)). Anyway, happy new year to all! Walter