]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
recursor local udp port avoid 4791
authorzhaojingshi <zhaojingshi@bytedance.com>
Thu, 12 Dec 2024 08:57:44 +0000 (16:57 +0800)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 13 Dec 2024 08:51:56 +0000 (09:51 +0100)
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.

pdns/recursordist/settings/table.py

index f3d647ffa4c1b637518e064ec37c07a5906eb413..a94ecc5dbf60a3cd97493447fd795267ad7387ec 100644 (file)
@@ -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`.
  ''',