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.comto your docker machine IP addressdig @your-machine-ip-addr example.com +short127.0.0.10and127.0.0.20should be displayed alternately.