[98382] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: DNS Question

daemon@ATHENA.MIT.EDU (hUnTeR)
Sun Nov 8 19:35:29 1998

Date: Sun, 08 Nov 1998 19:33:20 -0500
From: hUnTeR <hunter@esprit.net>
To: Redhat Mail List <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Justin Oelgoetz wrote:
> 
> I have a caching DNS server running on my home machine.  It works if I
> put in nameserver xxx.xxx.xxx.xxx in my resolv.conf (where
> xxx.xxx.xxx.xxx is the IP address I get from my ISP) it does not work if
> I put in 127.0.0.1 or the address of an internal NIC (Which is not
> connected to a network, but is pingable).  Manually editing the
> resolv.conf file everytime I connect is annoying to say the least, and I
> could write a script, but it seems the DNS should work w/ 127.0.0.1.
> Any ideas?

well you could always add a dns server that exists in the real world,
like your ISP for example. Depending on which version of BIND you are
running, check the /etc/named.conf and make sure you have the
named.local (or whatever name you gave it) zone file set up properly as
well as the reverse zone (i.e. 0.0.127.IN-ADDR.ARPA). Here is an example
from /etc/named.conf (BIND 8)

// a caching only nameserver config
//
zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
};

so the named.local zone does your reverse and all others look to the
named.ca which is simply a list of root name servers.

HTH
-- 
Michael B. Weiner
Systems Administrator/Partner
The UserFriendly Network (UFN)
--

             / /  (_)__  __ ____  __
            / /__/ / _ \/ // /\ \/ /  
           /____/_/_//_/\_,_/ /_/\_\ 

     * * * CHOICE OF A GNU GENERATION * * *

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.5.5 for non-commercial use
Comment: Public key available at http://pgpkeys.mit.edu
and http://www.userfriendly.net/pgp_key.asc

iQA/AwUBNQreROCbl6l4t9akEQJRagCfTDSULZQS/Iv0dFWdFMJa2F0N4vkAoKhh
zh5u4pHu75zfXwXK9PNU2Y5u
=kO+N
-----END PGP SIGNATURE-----


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post