[
https://issues.apache.org/jira/browse/TS-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Masaori Koshiba updated TS-3281:
--------------------------------
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.
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.
was:
I found a wired behavia 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.
> 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
>
> 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)