[dnsdist] DoH pool servers and packet cache usage
denis.machard at orange.com
denis.machard at orange.com
Fri Oct 1 07:07:14 UTC 2021
Hi,
I am trying to use DoH backends the new alpha release of dnsdist 1.7.0
I had a behavior I don't understand with the packet cache, here the configuration used:
setLocal("0.0.0.0:53", {])
pc = newPacketCache(10000, {})
pool_resolv = "resolvers"
caStore = "/etc/dnsdist/conf.d/tls-ca-bundle.pem"
-- members definitions
newServer({
address = "1.1.1.1:443<http://1.1.1.1:443>",
tls = "openssl",
dohPath = "/dns-query",
caStore = caStore,
subjectName = "cloudflare-dns.com<http://cloudflare-dns.com>",
validateCertificates = true,
pool = pool_resolv,
})
newServer({
address = "8.8.8.8:443<http://8.8.8.8:443>",
tls = "openssl",
dohPath = "/dns-query",
caStore = caStore,
subjectName = "dns.google",
validateCertificates = true,
pool = pool_resolv,
})
setPoolServerPolicy(roundrobin, pool_resolv)
getPool(pool_resolv):setCache(pc)
With this configuration, I don't succeed to use the packet cache with incoming UDP dns queries, in the other hand its ok with TCP dns queries
This is the expected behavior for you or perhaps I missed something?
Denis
Orange Restricted
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20211001/fecfac64/attachment.htm>
More information about the dnsdist
mailing list