Details
Description
Current TS lacks InkAPI to set IP address of the origin server which could avoid DNS lookup and hence makes it perform better in higher load. In our usecase, we make DNS query from a plugin for maintaining politeness, load-balancing, black-listing etc. So really speaking, we can avoid DNS query from within traffic server. Exposing such API would be a great help for us. We can see an InkAPI to get the IP though -
inkapi INKReturnCode INKHostLookupResultIPGet(INKHostLookupResult lookup_result, unsigned int *ip);
We want similar InkAPI to set it before DNS lookup stage in trafficserver and bypass the DNS lookup once set.