Okay, don't use Webmin. First step is to tell your Domain Registrar you have your own custom DNS servers and to create them, pointing to the appropiate IP Address, etc.
By default Slackware's BIND install is for a caching from the main TLD servers for all DNS resolution.
After you setup NS servers with your Registrar by using one of your domains and setting up ns1.domain.com and ns2.domain.com, the quick and easy way to setup BIND is this way:
Edit your /etc/named.conf file, it looks something like this:
Code:
options {
version "Bind";
directory "/var/named";
allow-transfer { none; };
listen-on { 66.219.45.137; };
};
zone "trickykid.org" IN {
type master;
file "trickykidorg.zone";
};
First option is main options, second zone is one of my own domains.
Then you'll want to create the zone file you specified from this file in /var/named/ and an example looks like this:
Code:
$TTL 86400
$ORIGIN trickykid.org.
@ 1D IN SOA ns1.jabentley.net. hostmaster.jabentley.net. (
2006100803 ; serial
6H ; refresh 6 hours
3600 ; retry 1 hour
1W ; expire 1 week
1D ) ; minimum
1D IN NS ns1.jabentley.net.
1D IN NS ns2.jabentley.net.
IN MX 10 mail.trickykid.org.
IN A 66.219.45.137
www IN CNAME @
mail IN CNAME @
I'm not going to go into specifics on these files, there's plenty of documentation on the web already.
But once you've gone that far, you just fire up bind by first making it executable:
Code:
chmod +x /etc/rc.d/rc.bind
And then starting it:
Code:
/etc/rc.d/rc.bind start
Adding more zones means just adding their entries to /etc/named.conf and then the file you specify in /var/named/
Sometimes it's also a good idea to have bind running in a chroot environment.