[haiku-bugs] Re: [Haiku] #7362: hosts file not utilized

  • From: "leavengood" <trac@xxxxxxxxxxxx>
  • Date: Sat, 02 Mar 2013 01:47:24 -0000

#7362: hosts file not utilized
--------------------------------+----------------------------
   Reporter:  mmadia            |      Owner:  axeld
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  R1
  Component:  Kits/Network Kit  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by leavengood):

 I have several concerns based on this ticket:

 1. I don't know why you would want a local hosts file checked last. On
 pretty much every operating system I've used you can add to a hosts file
 to override something out on the internet. This adblock host file is one
 example, but in my work I've also used it to make external websites I was
 testing resolve to a local host when testing things. I think we should
 either add a default irs.conf to the system to force local host resolving
 first or better yet override the defaults within the library.

 2. It is pretty ridiculous for the DNS library to choke on Windows line
 endings. The line ending should be irrelevant when parsing the hosts file.
 Haiku is not the sort of system where stupid things like that should break
 functionality.

 3. There should be a system-wide DNS cache, and everything in the hosts
 file should be pre-cached. Resolving DNS should not be adversely affected
 by even a hosts file as big as this one (559 KB.)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7362#comment:11>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: