This is just an example for testing NGINX UDP load balancing functionality newly added since NGINX 1.9.13.
-
Clone this repository
-
Run
docker-compose up
-
Check your docker machine IP address:
docker-machine ip your-machine
-
Send a query resolving
example.com
to your docker machine IP addressdig @your-machine-ip-addr example.com +short
127.0.0.10
and127.0.0.20
should be displayed alternately.