1 Reply Latest reply on Jul 28, 2020 1:46 AM by NicolasAlauzet

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

    KBricksBuilder Novice

      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?

        • 1. Re: NSX loadbalance members by DNS name rather than IP, possible?
          NicolasAlauzet Hot Shot

          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