From d0b0158ef76e556c88ab59b2baad8c8d9970543e Mon Sep 17 00:00:00 2001 From: zhaojingshi Date: Thu, 12 Dec 2024 16:57:44 +0800 Subject: [PATCH] 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. --- pdns/recursordist/settings/table.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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`. ''', -- 2.47.2