I started the named server on CentOS and it seems to resolve DNS request OK, but it does not seem to retain the info for very long. From what I can tell using "dig", a domain's ip address is retained for less than 12 hours. So in the morning, it takes 4+ seconds to resolve again the first time. Is there an adjustment somewhere for this or is the caching named support not enabled by default? Also, I thought it would be faster if I set named to use my ISP's named server as the first choice. Where do I set this up, in root.hints? Anyone who knows more about "named" please feel free to comment! Thanks! Lee Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html
On Tue, 2005-05-17 at 09:47 -0700, Lee Parmeter wrote:> I started the named server on CentOS and it seems to > resolve DNS request OK, but it does not seem to retain the > info for very long. From what I can tell using "dig", a > domain's ip address is retained for less than 12 hours. So > in the morning, it takes 4+ seconds to resolve again the > first time. Is there an adjustment somewhere for this or is > the caching named support not enabled by default? > > Also, I thought it would be faster if I set named to use my > ISP's named server as the first choice. Where do I set this > up, in root.hints? > > Anyone who knows more about "named" please feel free to > comment! > > Thanks! > LeeI already sent 2 replys :) http://lists.centos.org/pipermail/centos/2005-May/006003.html and http://lists.centos.org/pipermail/centos/2005-May/006002.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20050517/2c240395/attachment-0004.sig>
> -----Original Message----- > From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On > Behalf Of Lee Parmeter > Sent: Tuesday, May 17, 2005 11:48 AM > To: centos at centos.org > Subject: [CentOS] named server > > I started the named server on CentOS and it seems to > resolve DNS request OK, but it does not seem to retain the > info for very long. From what I can tell using "dig", a > domain's ip address is retained for less than 12 hours. So > in the morning, it takes 4+ seconds to resolve again the > first time. Is there an adjustment somewhere for this or is > the caching named support not enabled by default?Bind will use the Time To Live as configured by the owner of the domain name. There are other proxy DNS applications that allow you to override those values but I do not believe you can do so with bind.> Also, I thought it would be faster if I set named to use my > ISP's named server as the first choice. Where do I set this > up, in root.hints?http://64.233.187.104/search?q=cache:OFlpPzQRRcUJ:www.rhce2b.com/clublin ux/RHCE-19.shtml+bind+forwarders&hl=en 19.3 Caching Only Name Servers 1. Not authoritative for any zone. 2. Uses DNS root servers or another name server known as a forwarder to resolve DNS queries. 3. To create a Forwarding Name Server, put the following line in the "options" section of the /etc/named.conf file: forwarders { 192.168.1.20; }; # replace with your upstream nameserver 4. If you want BIND to only use it's forwarders to resolve hosts and not the root name servers, put the following line in the "options" section of the /etc/named.conf file: forward only; The "forwarders" option specifies which DNS or DNS servers queries should be forwarded to for resolution.> Anyone who knows more about "named" please feel free to > comment!Google knows a lot. =) -- Marc
On May 17, 2005, at 12:47 PM, Lee Parmeter wrote:> Also, I thought it would be faster if I set named to use my > ISP's named server as the first choice. Where do I set this > up, in root.hints?you don't set it up in root.hints, you use named.conf. in the "options" section (should be near the top of the file), insert the following lines: forwarders { <ip address of your ISP's nameserver>; <ip address of your ISP's other nameserver>; }; then stop and restart BIND. this tells BIND to send all queries that it cannot resolve locally out to the forwarders - it is unlikely that you should be querying root nameservers directly. you can add as many additional nameservers as you like; they will be queried in order. -steve --- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On Tue, 2005-05-17 at 09:47 -0700, Lee Parmeter wrote:> I started the named server on CentOS and it seems to > resolve DNS request OK, but it does not seem to retain the > info for very long. From what I can tell using "dig", a > domain's ip address is retained for less than 12 hours. So > in the morning, it takes 4+ seconds to resolve again the > first time. Is there an adjustment somewhere for this or is > the caching named support not enabled by default? > > Also, I thought it would be faster if I set named to use my > ISP's named server as the first choice. Where do I set this > up, in root.hints? >No ... it won't normally be faster to use your ISP's DNS first ... You will ask it a question ... it will ask the main server ... then reply to you. If you ask yourself, it will cut out the middle man :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20050517/6fd05041/attachment-0004.sig>
On May 17, 2005, at 1:01 PM, Johnny Hughes wrote:> No ... it won't normally be faster to use your ISP's DNS first ... > > You will ask it a question ... it will ask the main server ... then > reply to you. If you ask yourself, it will cut out the middle man :)i don't believe that's necessarily a correct deduction. cutting out the middle man is not always good; if you ask your ISP's nameserver, your ISP's nameserver will quite likely be able to supply you with accurate cached information (especially if you're trying to resolve a commonly used hostname), thus reducing the overall load on the root servers. i doubt you'll see a significant difference, but you'll be doing everyone else a favor. -steve --- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
Thanks for everyone's input, I think my named server is working quite well now! This list is fantastic! BTW, the first time I posted, my spam filter ate the e-mail and all the responses. After I posted the question the 2nd time it showed up and then I got curious as to what happened after Johnny's comment below! Lee --- Johnny Hughes <mailing-lists at hughesjr.com> wrote:> On Tue, 2005-05-17 at 09:47 -0700, Lee Parmeter wrote: > > I started the named server on CentOS and it seems to > > resolve DNS request OK, but it does not seem to retain > the > > info for very long. From what I can tell using "dig", a > > domain's ip address is retained for less than 12 hours. > So > > in the morning, it takes 4+ seconds to resolve again > the > > first time. Is there an adjustment somewhere for this > or is > > the caching named support not enabled by default? > > > > Also, I thought it would be faster if I set named to > use my > > ISP's named server as the first choice. Where do I set > this > > up, in root.hints? > > > > Anyone who knows more about "named" please feel free to > > comment! > > > > Thanks! > > Lee > > I already sent 2 replys :) > >http://lists.centos.org/pipermail/centos/2005-May/006003.html> > and > >http://lists.centos.org/pipermail/centos/2005-May/006002.html> > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Lee Parmeter Emperor, linXos - The Flying Penguin http://www.linXos.com Linux Registered User #337161 'It's free. It works. Duh.'" - Eric Harrison The United States is NOT a democracy, it was founded as a Republic! God is not a republican or a democrat nor is His government a democracy! - Lee Parmeter Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html