Is it possible to connect to different external hosts with same ports via TCP?

Hi,
I’am using isito 1.6.16 and i have following service entry for two external database instances:

apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
  name: external-db-se
spec:
  hosts:
  - db1.external.host.com
  - db2.external.host.com
  location: MESH_EXTERNAL
  ports:
  - number: 5433
    name: tcp-db
    protocol: TCP
  resolution: NONE

but no matter what call is made, it always connects to db1.external.host.com

curl db1.external.host.com
[2021-09-22T21:05:01.786Z] "- - -" 0 - "-" 2087 2714 171337 - "-" "-" "-" "-" "10.55.68.8:5433" outbound|5433||db1.external.host.com 10.128.79.17:37608 10.55.68.8:5433 10.128.79.17:37606 - 

curl db2.external.host.com
[2021-09-22T21:05:01.786Z] "- - -" 0 - "-" 2087 2714 171337 - "-" "-" "-" "-" "10.56.95.8:5433" outbound|5433||db1.external.host.com 10.128.79.17:37608 10.56.95.8:5433 10.128.79.17:37606 -

curl 10.55.68.8:5433
[2021-09-22T21:05:01.786Z] "- - -" 0 - "-" 2087 2714 171337 - "-" "-" "-" "-" "10.55.68.8:5433" outbound|5433||db1.external.host.com 10.128.79.17:37608 10.55.68.8:5433 10.128.79.17:37606 -

curl 10.56.95.8:5433
[2021-09-22T21:05:01.786Z] "- - -" 0 - "-" 2087 2714 171337 - "-" "-" "-" "-" "10.56.95.8:5433" outbound|5433||db1.external.host.com 10.128.79.17:37608 10.56.95.8:5433 10.128.79.17:37606 -

Are there any workarounds for this? Is it possible to at least connect one database per service?

(I am not an expert.)

Your solution might be to use resolution DNS.

You can also use wildcard host (e.g. “*.foo.bar”) but the resolution must be set to DNS.

Thinking that you might have to use endpoints: and specify specific domain names. Offcourse you need resolution: DNS for endpoints to work.