Re: [CFR] reflect resolv.conf update to running application

From: Randy Bush (randy_at_psg.com)
Date: 08/21/05

  • Next message: Poul-Henning Kamp: "Re: [CFR] reflect resolv.conf update to running application"
    Date: Sun, 21 Aug 2005 12:19:46 +0000
    To: Robert Watson <rwatson@FreeBSD.org>
    
    

    > (1) Has anyone characterized the significant of the cost of doing a stat()
    > for every DNS lookup for a significant workload? Does it matter?
    > Most performance-critical network paths don't do name lookups in order
    > to prevent indefinite stalls in lookup, but doing, say, 1,000
    > additional stats a second is not a small issue.

    are you gonna be doing all that many of them, given that the dns
    queries over the net will not be blindingly fast to say the least?

    > (2) By reading the configuration file more frequently and more quickly
    > after a change, we increase the chances of a race condition in which
    > the resolve reads a partially written resolv.conf file during an
    > update. Does this happen in practice? I've always been very leery of
    > re-reading configuration files automatically based on a time-stamp, as
    > updates to files are not atomic at all.

    hmmmmm

    dunno about others' use patterns, but in my world, resolv.conf only
    changes when my mobile platform moves layer three binding (i.e. not
    an an 802.11 access point move). so the frequency is low, and it
    is usually not issuing dns queries as i move. but when i get to
    the new binding, i am annoyed if i have to whack the resolver.

    randy

    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Poul-Henning Kamp: "Re: [CFR] reflect resolv.conf update to running application"

    Relevant Pages

    • Re: Cannot access a web page
      ... First let's find out what your DNS is really telling you. ... Does the lookup give you the same IP address that your HOSTS file ... More importantly that page contains absolutely no reference to Skype ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: DNS SRV Records Question
      ... The DNS Zone name in the Forward Lookup Zone is ad.farlite.co.nz ... Running Win2k server SP4 ... DS RPC Bind. ...
      (microsoft.public.win2000.dns)
    • Re: Non-blocking connect BLOCKS
      ... > I'm using asyncore to download a large list of web pages, ... > noticed dispatcher.connect blocks for some hosts. ... Most likely the connect call is doing a DNS lookup, ...
      (comp.lang.python)
    • Re: NAT/DNS question/recommendation?
      ... >> NIS in my local network. ... > absolutely nothing to do with dns. ... lookup and hangs until it times out or until it gets back a reply. ... shut down the 'srvr' doesn't seem to even try this reverse DNS ...
      (freebsd-questions)
    • Re: Exchange mailing to A records intermittently instead of MX records ???
      ... That would be consistent with lookup failures. ... If you fail that time, then you fail back to the application ... it would check DNS ...
      (microsoft.public.exchange.connectivity)