[NTLUG:Discuss] Bind, Apache and Webmin...

Greg Edwards greg at nas-inet.com
Thu Nov 8 19:13:27 CST 2001


Douglas King wrote:
> 
> I am in the process of building new servers (Windows is over the rail, and
> out the door).  I am having problems getting Bind set up.  I want to have
> my own DNS (because I also do a lot of "virtual hosting").  I have looked
> at the GUI interface...but it just doesn't hit home yet.  I have the
> servers set up for non-routable IP's...the Smoothwall (it's Linux too) is
> port mapping back to the servers...
> 
> I have also heard that when using the Apache GUI, it will kill the
> httpd.conf file if you also manually edit this.  Thoughts or suggestions
> are always welcome.  I like the webmin interface...but I still have a lot
> to learn.  I know Windblows fairly well, but need to learn Linux even
> better.  I have purchased several books, and approached some for
> advice...but no on can seem to have answers on the Bind issue.
> 
> Thanks.....

I've been playing with webmin also and its fairly reasonable but I'm
still looking for a GUI for sysadmin.  For bind it is fairly good, if
you already know what your doing.  However, I perfer hand editing my
bind files since I like comments in them.

I assume dak1.net is yours?

Five files need to be setup (this is minimum just to get you started).

assume your static IP is xxx.yyy.zzz.nnn
secondary DNS is xxx.yyy.zzz.mmm at ns.dnstwo.com
site contact is webmaster

/etc/named.conf

This should mostly be setup if you installed it from your distribution.
=========================================================
options {
        directory "/var/named";
};
 
zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
};
 
zone "zzz.yyy.xxx.in-addr.arpa" {
        type master;
        file "pz/xxx.yyy.zzz";
};
 
zone "dak1.net" {
        type master;
        file "pz/dak1";
};

=========================================================


/var/named/named.ca           should have been supplied
/var/named/named.local        should have been supplied

/var/named/pz/xxx.yyy.zzz
=========================================================
$TTL        43200
 
@           IN   SOA    ns1.dak1.net.  webmaster.dak1.net. (
                          2001100301 ; serial
                          10800      ; refresh
                          3600       ; retry
                          3600000    ; exipry
                          86400      ; default_ttl
                        )
 
@           IN   NS     ns1.dak1.net.
nnn         IN   PTR    ns1.nas-inet.com.
========================================================

/var/named/pz/dak1
========================================================
@              IN   SOA    ns1  webmaster (
                             2001100301 ; serial
                             10800      ; refresh
                             3600       ; retry
                             3600000    ; exipry
                             86400      ; default_ttl
                           )
 
@              IN   NS     ns1
@              IN   NS     ns.dnstwo.com.
@              IN   MX 5   mail
ns1            IN   A      xxx.yyy.zzz.nnn
www            IN   CNAME  ns1
mail           IN   CNAME  ns1
dak1.net.      IN   A      xxx.yyy.zzz.nnn
ns.dnstwo.com. IN   A      xxx.yyy.zzz.mmm
========================================================

Now go purchase "DNS and BIND" published by O'Reilly and start reading. 
It may seem like alot of reading for just 1 tool but there are already
way too many poorly setup name servers out there.  Once you've learned
and gotten everything setup life will be better both inside your network
and for the rest of the net.

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com



More information about the Discuss mailing list