VMware Networking Community
KBricksBuilder
Enthusiast
Enthusiast

NSX loadbalance members by DNS name rather than IP, possible?

Due to our internal setup loadbalancing by IPs is not an option, and it looks like im not able to use the pool members DNS names either, which suprises me. Is there some way to use DNS names for this or alternatively a workaround that will allow me to use DNS names to point to in my loadbalancer?

Reply
0 Kudos
1 Reply
NicolasAlauzet

Hi there.

That is not supported, you only can use IP from the UI.

But maybe you can try pushing this using an API call. Even the parameter in the API is IP address:

<loadBalancer>

<pool>

<type>slb</type>

<poolId>pool-1</poolId>

<name>pool-http</name>

<description>pool-http</description>

<algorithm>round-robin</algorithm>

<transparent>true</transparent>

<monitorId>monitor-1</monitorId>

<member>

<memberId>member-1</memberId>

<ipAddress>192.168.101.201</ipAddress>

<weight>1</weight>

<port>80</port>

<maxConn>100</maxConn>

<minConn>10</minConn>

<condition>enabled</condition>

<name>m1</name>

</member>

<member>

<memberId>member-2</memberId>

<ipAddress>192.168.101.202</ipAddress>

<weight>1</weight>

<port>80</port>

<maxConn>100</maxConn>

<minConn>10</minConn>

<condition>enabled</condition>

<name>m2</name>

</member>

</pool>

Get your config with this:

GET /api/4.0/edges/{edgeId}/loadbalancer/config/pools

Update using this with the relacement for DNS (Make sure that your edge has DNS configured)

POST /api/4.0/edges/{edgeId}/loadbalancer/config/pools

In case this works, that I;m not sure about (cannot test it myself atm) this is not supported.

Let me know how it goes if you do this 😃

Cheers
N

-------------------------------------------------------------------
Triple VCIX (CMA-NV-DCV) | vExpert | MCSE | CCNA
Reply
0 Kudos