]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update minor code/doc nits
authorBrian Rak <brian.rak@automattic.com>
Thu, 30 Nov 2023 16:30:26 +0000 (16:30 +0000)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 6 Feb 2024 12:45:05 +0000 (13:45 +0100)
docs/lua-records/functions.rst
regression-tests.auth-py/test_LuaRecords.py

index fc4a4fd68abb6957b8161a3a693b71dd738ba83b..4fbab90bcc8fa3a03d3179a18a3108620d24890d 100644 (file)
@@ -237,7 +237,8 @@ Record creation functions
   :param values: table of weight, string (such as IPv4 or IPv6 address).
 
   This allows basic persistent load balancing across a number of backends.  It means that
-  test.example.com will always resolve to the same IP, but test2.example.com may go elsewhere.
+  test.mydomain.example.com will always resolve to the same IP, but test2.mydomain.example.com
+  may go elsewhere.  This function is only useful for wildcard records.
 
   This works similar to round-robin load balancing, but has the advantage of making traffic
   for the same domain always end up on the same server which can help cache hit rates.
@@ -246,7 +247,7 @@ Record creation functions
 
   An example::
 
-    mydomain.example.com    IN    LUA    A ("picknamehashed({                             "
+    *.mydomain.example.com    IN    LUA    A ("picknamehashed({                        "
                                             "        {15,  "192.0.2.1"},               "
                                             "        {100, "198.51.100.5"}             "
                                             "})                                        ")
index 1164af67d515e0ae7cd46669422cf0845450fb90..b48566cf98ea032a7fb7b2381b60187e60e5e2de 100644 (file)
@@ -801,16 +801,16 @@ createforward6.example.org.                 3600 IN NS   ns2.example.org.
 
         queries = [
             {
+                'query': dns.message.make_query('test.namehashed.example.org', 'A'),
                 'expected': dns.rrset.from_text('test.namehashed.example.org.', 0,
                                        dns.rdataclass.IN, 'A',
                                        '1.2.3.4'),
-                'query': dns.message.make_query('test.namehashed.example.org', 'A')
             },
             {
+                'query': dns.message.make_query('test2.namehashed.example.org', 'A'),
                 'expected': dns.rrset.from_text('test2.namehashed.example.org.', 0,
                                        dns.rdataclass.IN, 'A',
                                        '4.3.2.1'),
-                'query': dns.message.make_query('test2.namehashed.example.org', 'A')
             }
         ]
         for query in queries :