http - Can Nginx resolves upstream server name given as SRV DNS records? -


i want know if nginx able resolve srv dns records when given upstream server address. seems it's not case, maybe there workaround if can't out-of-the-box. thx in advance.

srv records not meant used a(ddress) records. in theory should possible hack nginx resolve srv records advantage see 'weight' , 'priority' fields used in srv records.

you can use feature in nginx config:

upstream backend  {   server backend1.example.com weight=5;   server backend2.example.com:8080;   server unix:/tmp/backend3; } 

httpupstreammodule


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -