米娜学组vlog免费观看网站

Dynamic DNS Resolution Open Sourced in NGINX

—

by

in

In modern infrastructures, the ability to scale applications efficiently is no longer a “nice to have” – it’s the standard. As dynamic infrastructures evolve, a load balancer that can quickly adapt without manual intervention is now a necessity. While various systems can orchestrate these changes, ensuring your load balancer integrates flawlessly with these systems is the key to maximizing your architectural design.

DNS records have emerged as the de facto solution for communicating and managing these changes, effectively associating IP addresses and ports with human-readable names. This approach, however, requires some changes with how you interact with the records. You can no longer rely on long-lived TTLs. Instead, you need to be checking for updates in minutes rather than hours.

NGINX Plus has long offered the ability to dynamically resolve DNS records in upstream servers. With the growing adoption of microservices and popularity of NGINX in Kubernetes deployments, we have decided to open source our DNS dynamic resolution feature set. You can now configure the open-source version of NGINX to check for DNS changes as frequently as you need, and against any DNS server available in your environment.

Enabling DNS Service Discovery in NGINX

To enable DNS service discovery in NGINX, add the resolve directive parameter to your upstream directive, and use a resolvable hostname as your address:

server address [parameters] resolve;

And to define the DNS service used to resolve the domain name, use the directive:

resolver address [parameters];

You can also set the resolver timeout using the resolver_timeout directive:

resolver_timeout 10s;

A more complete config example containing the above directives should look similar to the config below (you will need to replace your resolver IP and upstream servers with valid values):

http {
    resolver 10.0.0.1 valid=300s ipv6=off;
    resolver_timeout 10s;
    upstream backend {
        server backend1.example.com resolve;
        server backend2.example.com resolve;
    }
    server {
        location / {
            proxy_pass //backend;
        }
    }
}

To read more about different ways to implement dynamic resolution of DNS records using the now open-source dynamic DNS resolution feature set, .

Community Feedback

We hope open sourcing this feature will help simplify and uplevel your NGINX deployments. If you have any feedback, suggestions, or further feature requests for NGINX, let us know in ! We recently to GitHub and have been truly enjoying all of the community engagement.


精品产综合产品免费完整中文版_www每日大赛吃瓜爆料聚集地mrds.fun_917813砰砰砰弟弟超棒 溏心logo网页版入口在线看_天美免费在线看免费版中文版在线_女生奖励自己网站 二人生猴子全程不盖被子免费高清视频_害羞草补单平台进口在线看网页在线看_一男一女剧烈运动扑克牌 夏天女生校服太短能看见屁股_人人 精品女女热热一区_免费www94999com官网 和儿子同床后想天天让儿子上_一亲二抱三四亲五注免费在线观看_日本兔费a级毛一片在线zzzz