Well, depending on your version of named, you are going to need to setup a domain, create yourself as the SOA of that domain, and edit your named.conf in order to tell the named daemon where your zone file is.
so, you edit /etc/named.conf, then probably a file in /var/named , and call it anything you want, like
domainname.com or
db.domainname . In that file in /var/named, (called a zone file) you will put in the information pertaining to your domain.
Here is an example /etc/named.conf file:
Code:
options {
directory "/var/named" ;
listen-on { localhost; x.x.x.x; }; #put your ip here that you will have named listening on
query-source address * port 53;
allow-query { localhost; x.x.x.x; } ; # who do you want to query this server? 0.0.0.0/0 will allow anyone
allow-recursion { localhost; x.x.x.x; } ;
allow-transfer { localhost; } ; # if you want to do the equivalent to an ftp of your zone files to a second dns server
notify no;
};
zone "." in {
type hint;
file "named.ca";
};
zone "x.x.x.in-addr.arpa" { #first three octets of your ip for reverse dns, etc (so if your ip is 2.3.4.5, you will make this 4.3.2.in-addr.arpa
type master;
file "4.3.3.in-addr.arpa"; # the file name
allow-query { any ; } ;
};
zone "yourdomain.com" {
type master;
file "yourdomain.com";
allow-query { any ; } ;
};
Although I think generators are like cheating, you can see how the zone file works by going here:
http://pgl.yoyo.org/adservers/bind-z...le-creator.php