Deppends on what BSD you usethis answer... If you're using FreeBDS [haven't yet tryed OpenBSD, NetBSD etc] all you have to do is :
- edit your
/etc/rc.conf file and add a line which says
named_enable="YES", and if needed add another like
named_flags="-u bind -g bind" (the second if you want to run named in a sandbox)
- do a
sh make_localhost in
/etc/namedb
- edit your
/etc/namedb/named.conf and define at least a zone depending on your needs (master/slave). You could also define some ACLs to restrict access to your server
- write the files containing your zones, usualy located in
/etc/namedb/s
- restart the daemon:
# killall -HUP named or start it
# named [named_flags]
A sample zone file is the one generated by
make_localhost script, you could use it as a template. Don't forget to increment the serial number of the zone at each change !
Quote:
Originally posted by BSD_NEWUSER
I just learning BSD So how would you go about setting up a DNS server please explain like A,B,C I am a new very new UNIX users so any help would be great thanks