]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
docs: fix lua reverse example for IPv6 records 9595/head
authorMarkus Hauschild <markus@moepman.eu>
Thu, 8 Oct 2020 13:57:57 +0000 (15:57 +0200)
committerMarkus Hauschild <markus@moepman.eu>
Thu, 8 Oct 2020 13:57:57 +0000 (15:57 +0200)
The example called the createReverse function on a PTR record for an
IPv6 address instead of the createReverse6 - which when mindlessly
copy and pasted resulted in a lengthy servfail error

docs/lua-records/functions.rst

index c34eb1bc94d962d5c49f9f3a3919161098319461..1abed8462b4108afd83af7eff8201deeaa0aafcf 100644 (file)
@@ -270,8 +270,8 @@ Reverse DNS functions
   
   Example records::
   
-    *.1.0.0.2.ip6.arpa IN    LUA    PTR "createReverse('%33%.static6.example.com')"
-    *.2.0.0.2.ip6.arpa IN    LUA    PTR "createReverse('%34%.%35%.static6.example.com')"
+    *.1.0.0.2.ip6.arpa IN    LUA    PTR "createReverse6('%33%.static6.example.com')"
+    *.2.0.0.2.ip6.arpa IN    LUA    PTR "createReverse6('%34%.%35%.static6.example.com')"
  
   When queried::