[lxc-devel] [lxd/master] lxd/main/forkdns: Adds recursion desired comment that got removed during refactor

tomponline on Github lxc-bot at linuxcontainers.org
Thu Dec 12 10:46:15 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191212/75ab8289/attachment.bin>
-------------- next part --------------
From 58cc697da832e9d0f771fe16e7da3928e3cacc63 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Thu, 12 Dec 2019 10:45:36 +0000
Subject: [PATCH] lxd/main/forkdns: Adds recursion desired comment that got
 removed during refactor

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/main_forkdns.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lxd/main_forkdns.go b/lxd/main_forkdns.go
index f2ab1d3060..10f7f2830d 100644
--- a/lxd/main_forkdns.go
+++ b/lxd/main_forkdns.go
@@ -270,6 +270,7 @@ func (h *dnsHandler) handlePTR(r *dns.Msg) (dns.Msg, error) {
 	for _, server := range servers {
 		req := dns.Msg{}
 		req.Question = r.Question
+		// Tell the remote node we only want to query their local data (to stop loops).
 		req.RecursionDesired = false
 		req.Id = r.Id
 
@@ -369,6 +370,7 @@ func (h *dnsHandler) handleA(r *dns.Msg) (dns.Msg, error) {
 	for _, server := range servers {
 		req := dns.Msg{}
 		req.Question = r.Question
+		// Tell the remote node we only want to query their local data (to stop loops).
 		req.RecursionDesired = false
 		req.Id = r.Id
 


More information about the lxc-devel mailing list