> network between four machines, and it works fine (minus a few
> glitches here and there that keep me up all night). My next step is
> going to be IP-Masquerading, and after reading the How-To about a
> few million times, I think I should be able to do it (just going to
> upgrade the kernel to 2.2 on the machine I have picked as my
Unless you truly have a _desire_ to upgrade to 2.2 this isn't
nessicary(that's spelled wrong). My IP-masquerading router here
is running 2.0.36, and I just upgraded it to that from 2.0.34 a
couple of weeks ago.
>
> Now, I've been trying to set up a DNS server. I've read and followed
> the instructions on the DNS-How-To, but I have to admit, this has
> beem, to date, the most confusing How-To ever.
> Now, theoretically my DNS works for finding remote sites. What I'd
> like to know, since I can't seem to understand, how do I set it up
> so that it resolves for local machines?
I'm going to start by assuming you're running BIND 8.x as the
nameserver daemon. There are significant differences between 4
and 8, and I never really learned 4. If you're running bind 4
Someone else who learned this stuff when 4 was _the_ version
of bind by it (ray?) will have to answer it then. But, the people
at ISC say you should really upgrade to bind 8.2pl-5 because
of security issues. oh well. enough blabbering:
first. in your named.conf, you'll need a section that reads
zone "localnet.net"{
type master;
file "/etc/bind/db.myhosts";
};
then a file /etc/bind/db.myhosts
@ IN SOA ns.localnet.net. yourusername.localnet.net. (
2317 ; serial
8H ;refresh
2H ;retry
1W ;expire
1D ) ;minimum
;
NS machine3 ;
localhost A 127.0.0.1
machine1 A machine1.i.p.address
machine2 A machine2.i.p.address
machine3 A machine3.i.p.address
That should do basic name resolution I wouldn't worry about the top
part too much. Since this is just for internal use, don't bother
worrying about refresh retry expire or minimum
a class A record ( which is what you have for machine1,2,3 ) maps
a name to an Ip. If you also want to refer to machines by other names,
use CNAME enteries
e.g.
ftp CNAME machine1
ns CNAME machine3
I don't have a great understanding of how this all works, but I know it
does. (nwonknu.org exsists :-) ).
anyway, this should get you started.
Also past the howto's, you should look at the bind homepage. I've
found mistakes in the documentation that were right on the website.
http://www.isc.org/products/BIND/bind8.html
and a decent newsgroup
comp.protocols.dns.bind
if you search it with dejanews, you can often find answers to your
questions.(It's how I figured out listen-on).
have fun
greg
--
this is not here