From 6d0875e29af2e96d75f7ce5a91f312049f5b3604 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Tue, 4 Jun 2024 11:01:51 +0300 Subject: [PATCH] increase resolver timeout --- cfg.go | 2 +- example-conf/pdns.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg.go b/cfg.go index e8600b3..36b6d48 100644 --- a/cfg.go +++ b/cfg.go @@ -14,7 +14,7 @@ const ( cfgResolverEndpoint = "127.1.0.1:53" cfgResolverProto = "tcp" - cfgResolverTimeout = 1500 * time.Millisecond + cfgResolverTimeout = 2500 * time.Millisecond cfgNftTable = "uni" cfgNftTableFamily = nft.TableFamilyINet diff --git a/example-conf/pdns.conf b/example-conf/pdns.conf index 97835da..cce803c 100644 --- a/example-conf/pdns.conf +++ b/example-conf/pdns.conf @@ -1,5 +1,5 @@ launch=remote -remote-connection-string=http:url=http://127.0.0.1:8086/dns,post,post_json +remote-connection-string=http:url=http://127.0.0.1:8086/dns,post,post_json,timeout=3000 consistent-backends=false zone-cache-refresh-interval=0