Thach Tran created TS-2595:
------------------------------

             Summary: DNS lookup failed with multiple search domains
                 Key: TS-2595
                 URL: https://issues.apache.org/jira/browse/TS-2595
             Project: Traffic Server
          Issue Type: Bug
          Components: DNS
            Reporter: Thach Tran
         Attachments: ats_bad_dns.log

I find the DNS search domain expanding logic of ATS a bit strange. On a system 
with multiple search domains in /etc/resolv.conf such as
{noformat}
search cisco.com google.com
{noformat}
and proxy.config.dns.search_default_domains set to 1, if ATS tries to lookup a 
hostname say 'developers', it will expand it to 'developers.cisco.com' first 
and then 'developers.cisco.com.google.com'. In other words, the next search 
domain will just get appended to the already expanded name. In this instance, 
it will end up failing as both 'developers.cisco.com' and 
'developers.cisco.com.google.com' are not resolvable.

I would expect ATS to lookup 'developers.cisco.com' first and then try 
'developers.google.com' which will success.

I have a quick look at the code and it seems like it has been that way since 
Oct 2009 at least. Could someone comment on whether this is intentional or it's 
actually a bug. I find most other dns clients (e.g., nslookup) append search 
domain in turn to the original name rather than work this way.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to