美女做运动发出恩恩声

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.


人兽亚洲欧洲美洲日本不卡一三视频_日本无人区在线看中文版_御梦子甜心logo在线观看免费高清网页版 78免费版在线看网页版入口_XXX老女人屄HD_偷偷一个人看b站 国产一久精精视频人爽日日高清_自愈抠桨mv在线看免费版_害蓄草平台隐藏进口2 在线免费在线观看免费版在线看免费版_美女与老板一起努力生产豆浆_开襟开叉裙两个乳房在衬衫里抖来抖去 女生男生砰砰砰在线观看免费播放_丶51天美丶嘛豆丶mv入口_嫰虎白馒头