https://bz.apache.org/bugzilla/show_bug.cgi?id=62371

--- Comment #12 from Robert Rettig <robert@rettig.bayern> ---
(In reply to Mark Thomas from comment #11)
> 'data-service.tenant1-apps.svc' is a valid domain name so that should be OK.
> 
> I don't know enough about docker to know if using 'tasks.service-name' in
> that way is a valid usage or not.

I think you are right. The docker feature for resolving tasks with dns should
just be used in special cases like discovery
https://github.com/docker/docker.github.io/pull/6420/files 

But even in that case is there are possibility to disable the new host domain
validation in tomcat (environment, java runtime system property)?

Here are some additional observations within docker swarm from a debian
container with 'getent' from libc-bin package and 'host' binary from bind9-host
package.

:::RESOLVE (A)
::libc-bin::
root@a9348509c12f:/# /usr/bin/getent hosts data-service
10.0.0.21       data-service
root@a9348509c12f:/# /usr/bin/getent hosts tasks.data-service
10.0.0.13       tasks.data-service

::bind9-host::
root@a9348509c12f:/# /usr/bin/host data-service
data-service has address 10.0.0.21
Host data-service not found: 3(NXDOMAIN)
root@a9348509c12f:/# /usr/bin/host tasks.data-service
tasks.data-service has address 10.0.0.13
Host tasks.data-service not found: 3(NXDOMAIN)

:::REVERSE (PTR)
::libc-bin::
root@a9348509c12f:/# /usr/bin/getent hosts 10.0.0.21           
root@a9348509c12f:/# /usr/bin/getent hosts 10.0.0.13
10.0.0.13      
data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend

::bind9-host::
root@a9348509c12f:/# /usr/bin/host -t PTR 10.0.0.21
Host 21.0.0.10.in-addr.arpa. not found: 3(NXDOMAIN)
root@a9348509c12f:/# /usr/bin/host -t PTR 10.0.0.13
13.0.0.10.in-addr.arpa domain name pointer
data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend.



:::RESOLVE (A) the name from reverse
::libc-bin::
root@a9348509c12f:/# /usr/bin/getent hosts
data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend
10.0.0.13      
data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend
::bind9-host::
root@a9348509c12f:/# /usr/bin/host
data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend
data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend has
address 10.0.0.13
Host data-test_data-service.1.j37493y41n0t9eehio3dze3vl.data-test_backend not
found: 3(NXDOMAIN)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to