Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 12:51:42 -0800
From:      Waitman Gobble <gobble.wa@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: DNS
Message-ID:  <CAFuo_fxnt%2BEWtKHaBnMHDx6UiYHt84=P1QNuGqigkj-EZHJCwA@mail.gmail.com>
In-Reply-To: <CAHsiZG9aah6nS3sQ==JNMw5x426vxUa6MfgcJqLSv0s9YXdY7A@mail.gmail.com>
References:  <CAHsiZG8z8eNTLKzPvAsVm7ZTBwkNGLA%2BcLjQ2gJJvez6Aj8ChQ@mail.gmail.com> <CAHsiZG-tMwY2xjLx4Td24--FgXgEqqJW6e_JPkJnSznY1dEo5w@mail.gmail.com> <CAHsiZG9aah6nS3sQ==JNMw5x426vxUa6MfgcJqLSv0s9YXdY7A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 1, 2012 at 12:20 PM, Daniel Lewis
<innervisionnetwork@gmail.com>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuo_fxnt%2BEWtKHaBnMHDx6UiYHt84=P1QNuGqigkj-EZHJCwA>