server { listen 5000 udp; # IPv4 listen [::]:5000 udp; # IPv6 proxy_pass host.to.proxy:53; }