Re: DNS Configuration

From: Michael Kujawa (kujawa@cs.ucf.edu)
Date: Fri Jan 14 2000 - 22:45:12 EST


   Looks to me like you have made one of the easiest mistakes to make. You
DNS server will never query the hosts file in response to a DNS
query. Only queries originating from your machine check the hosts file
(depending on the settings in host.conf.) Since the only place you've put
host information is in hosts, nothing will work remotely.

   So how should it look?

named.conf:
----------
   If you want your box to be authoritative (not asking anyone else) for
all domain queries, there is no need for a root cache (named.ca, in this
case) Not being connected to the internet, you couldn't even connect to
the computers listed in named.ca. So remove the "." zone from named.conf

You need to add support for two types of queries: forward queries (name to
IP address) and reverse queries (IP address to names.) Each of these is
listed seperately in named.conf. Probably like so:

zone "25.168.192.in-addr.arpa" {
         type master;
         file "named.rev";
};

zone "ocean.to" {
         type master;
         file "named.hosts"
};

Now you must configure named.rev and named.hosts (The following examples
assume sailfish is the DNS server.)

named.rev:
---------
This file looks a lot like your named.local, except is for the 192.168.25.*
addresses. So it might look like:

@ IN SOA sailfish.ocean.to. root.sailfish.ocean.to. (
                                       1997022700 ; Serial
                                       28800 ; Refresh
                                       14400 ; Retry
                                       3600000 ; Expire
                                       86400 ) ; Minimum
          IN NS sailfish.ocean.to.

25 IN PTR sailfish.ocean.to.
29 IN PTR redsnapper.ocean.to.

named.hosts:
-----------

@ IN SOA sailfish.ocean.to. root.sailfish.ocean.to. (
                                       1997022700 ; Serial
                                       28800 ; Refresh
                                       14400 ; Retry
                                       3600000 ; Expire
                                       86400 ) ; Minimum
               IN NS sailfish

sailfish IN A 192.168.25.25
redsnapper IN A 192.168.25.29

Hopefully this will point you in the right direction,
-Mike
kujawa@cs.ucf.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:30 EST