[ 
https://issues.apache.org/jira/browse/TS-4576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15348812#comment-15348812
 ] 

James Peach commented on TS-4576:
---------------------------------

I thought about this some more. It seems really complex to move this hook, and 
the way it works is consistent with all the other hooks. That is, the API hook 
is called immediately after the state machine event (eg. you get "read headers" 
after the headers have been read).

I can satisfy my use case without this, so not to be fixed.

> Move the OS_DNS API hook to before DNS resolution
> -------------------------------------------------
>
>                 Key: TS-4576
>                 URL: https://issues.apache.org/jira/browse/TS-4576
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Core
>            Reporter: James Peach
>             Fix For: sometime
>
>
> Right now, the {{OS_DNS}} API hook happens after DNS is resolved, which makes 
> it fairly difficult to inject your own IP address for a transaction.
> Move the API hook to before DNS happens so that plugins get a chance to 
> pre-resolve DNS by setting the server address.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to