From: zhaojingshi Date: Thu, 12 Dec 2024 08:57:44 +0000 (+0800) Subject: recursor local udp port avoid 4791 X-Git-Tag: rec-5.3.0-alpha0^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0b0158ef76e556c88ab59b2baad8c8d9970543e;p=thirdparty%2Fpdns.git recursor local udp port avoid 4791 When the recursor sends a DNS request and the local port is specified as 4791, if there is RDMA hardware on the machine, when the response with dst as port 4791 reaches the network card driver, it will be directly processed by the hardware as Roce v2 protocol, and the recursor will not get a response to this request. --- diff --git a/pdns/recursordist/settings/table.py b/pdns/recursordist/settings/table.py index f3d647ffa4..a94ecc5dbf 100644 --- a/pdns/recursordist/settings/table.py +++ b/pdns/recursordist/settings/table.py @@ -2981,11 +2981,11 @@ See :ref:`setting-udp-source-port-min`. 'name' : 'udp_source_port_avoid', 'section' : 'outgoing', 'type' : LType.ListStrings, - 'default' : '11211', + 'default' : '11211,4791', 'help' : 'List of comma separated UDP port number to avoid', 'doc' : ''' A list of comma-separated UDP port numbers to avoid when binding. -Ex: `5300,11211` +Ex: `5300,11211,4791` See :ref:`setting-udp-source-port-min`. ''', @@ -2998,6 +2998,7 @@ A sequence of UDP port numbers to avoid when binding. For example: udp_source_port_avoid: - 5300 - 11211 + - 4791 See :ref:`setting-udp-source-port-min`. ''',