You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/02/04 19:55:46 UTC

[jira] [Closed] (TS-3281) Splitting local domain name

     [ https://issues.apache.org/jira/browse/TS-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom closed TS-3281.
-----------------------------

> Splitting local domain name
> ---------------------------
>
>                 Key: TS-3281
>                 URL: https://issues.apache.org/jira/browse/TS-3281
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: DNS
>            Reporter: Masaori Koshiba
>            Assignee: Alan M. Carroll
>            Priority: Blocker
>             Fix For: 6.0.0
>
>         Attachments: ts3281-001.patch
>
>
> 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.
> h2. 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,
> {noformat}
> curl -x localhost:8080 http://aaa/
> {noformat}
> 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".
> h2. My Settings
> My settings are below. If you need more details, please tell me.
> h3. records.config
> {noformat}
> 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
> {noformat}
> h3. /etc/resolv.conf
> {noformat}
> domain          yahoo.co.jp
> {noformat}
> h2. 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.



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