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; }
Comments
Post a Comment