GitHub user jacksontj opened a pull request: https://github.com/apache/trafficserver/pull/240
Maintain and use a mapping of hostname -> IP to implement host file support This allows the background thread to populate a map of overrides, which we simply inject in the lookup method-- in place of calling to DNS. I'm sure this implementation is riddled with holes, but it works in the most basic of cases. Pointers to get it cleaned up are much appreciated :) You can merge this pull request into a Git repository by running: $ git pull https://github.com/jacksontj/trafficserver master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/240.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #240 ---- commit a29a9afd5c47b7b789f4b266e348770639e1fd9b Author: Thomas Jackson <jackso...@apache.org> Date: 2015-07-01T23:52:55Z Maintain and use a mapping of hostname -> IP to implement host file support This allows the background thread to populate a map of overrides, which we simply inject in the lookup method-- in place of calling to DNS. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---