Skip to content
Snippets Groups Projects
  • Daniel Stenberg's avatar
    3451e888
    - Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf · 3451e888
    Daniel Stenberg authored
      file to determine the sequence in which to search /etc/hosts and DNS.  So on
      systems where this order is defined by /etc/host.conf instead of a "lookup"
      entry in /etc/resolv.conf, C-ARES will always default to looking in DNS
      first, and /etc/hosts second.
    
      c-ares now looks at
    
      1) resolv.conf (for the "lookup" line);
      2) nsswitch.fon (for the "hosts:" line);
      3) host.conf (for the "order" line).
    
      First match wins.
    3451e888
    History
    - Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
    Daniel Stenberg authored
      file to determine the sequence in which to search /etc/hosts and DNS.  So on
      systems where this order is defined by /etc/host.conf instead of a "lookup"
      entry in /etc/resolv.conf, C-ARES will always default to looking in DNS
      first, and /etc/hosts second.
    
      c-ares now looks at
    
      1) resolv.conf (for the "lookup" line);
      2) nsswitch.fon (for the "hosts:" line);
      3) host.conf (for the "order" line).
    
      First match wins.
To find the state of this project's repository at the time of any of these versions, check out the tags.