View Single Post
Old 27th October 2007, 04:59
wxman wxman is offline
Senior Member
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default Setting up a multi site web server and DNS

I've been reading tons about setting up my own nameserver both on the web, and books. I think I grasp most of it, but one thing - setting up the main records in the named.conf and zone files. I'm sure it's much easier than I'm making it. I'm using ISPConfig to set up my other web sites that will go on the server, and I manually set up the entry for my ns1 in the named.conf and zone file. I don't have a secondary NS server yet, but I will as soon as I get around to setting up another computer next to this one. For now I'm fudging the ns2 by using a Godaddy parked nameserver.

This is my current NAMED.CONF:
options {
        pid-file "/var/run/bind/run/";
        directory "/etc/bind";
        auth-nxdomain no;
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
        // query-source address * port 53;

// a caching only nameserver config
zone "." {
        type hint;
        file "db.root";

zone "" {
        type master;
        file "db.local";

zone "" {
        type master;
        file "";

zone "" {
        type master;
        file "";
And this is the zone I made for my
; BIND reverse data file for empty rfc1918 zone
; DO NOT EDIT THIS FILE - it is used for multiple zones.
; Instead, copy it, edit named.conf, and use that copy.
$TTL    86400
@       IN      SOA (
                         102420071      ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                          86400 )       ; Negative Cache TTL
        IN      NS
        IN      MX      10
@       IN      NS      localhost.
ns1     IN      A
ftp     IN      CNAME
What I'm aiming for is to run a primary dns server here, along with the rest of the web server setup, then set up a second server for the secondary dns. I want to use the I've already set up, and I will set up, as the name servers for all of the web sites I'm going to host. I think I understand to set up the not as a web site, but just the nameserver. I also need email, and ftp for all the sites as well using their own domains.

I just need to know if it looks like I'm on the right track now. Any advice would be welcome.
Reply With Quote
Sponsored Links