Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3281

Splitting local domain name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 6.0.0
    • DNS
    • None

    Description

      I found a wired behavior with resolving unqualified hostnames by expanding to the local domain.
      It looks like ATS splits the local domain name in few domains.

      I found a option to restrain ATS splitting the local domain name, called "RFC1535" in old commit log.
      But this option is removed by the commit of TS-129. And I couldn't find the reasons why this option is removed in the ticket.

      See: https://github.com/apache/trafficserver/commit/6afbdc54f41fce16e352eefb438ea2ebcc2ed149#diff-c111eacec46303aaa8cf4796bf8140cdL879

      IMO, ATS should not split the local domain name or has a option to stop splitting the local domain name.

      Details

      Although my local domain name is 'yahoo.co.jp', ATS expands unqualified hostname like 'aaa' to 'aaa.co.jp' when I send a proxy request like following,

      curl -x localhost:8080 http://aaa/
      

      As far as I understand, the behavior of ATS is below.

      1. When ATS start, ATS load the local domain from resolv.conf and add 'yahoo.co.jp' and 'co.jp' to domain list.
      2. ATS recives the request.
      3. ATS adds '.yahoo.co.jp' to the domain and queries 'aaa.yahoo.co.jp'. This query fails because there no such domain.
      4. ATS adds '.co.jp' to the domain and queries 'aaa.co.jp'.

      I just want ATS to add only '.yahoo.co.jp', my local domain, and return "502 Cannot find server".

      My Settings

      My settings are below. If you need more details, please tell me.

      records.config

      CONFIG proxy.config.http.server_ports STRING 8080
      CONFIG proxy.config.url_remap.remap_required INT 0
      CONFIG proxy.config.dns.search_default_domains INT 1
      CONFIG proxy.config.dns.resolv_conf STRING /etc/resolv.conf
      

      /etc/resolv.conf

      domain          yahoo.co.jp
      

      From ML

      Luca adviced me that replace "domain" to "search" in resolv.conf.
      We can avoid this bug. But it is better that ATS has a option.

      Attachments

        1. ts3281-001.patch
          4 kB
          Masaori Koshiba

        Activity

          People

            amc Alan M. Carroll
            masaori Masaori Koshiba
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: