summaryrefslogtreecommitdiff
path: root/contrib/python/docs/source/examples/example6.rst
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/docs/source/examples/example6.rst')
-rw-r--r--contrib/python/docs/source/examples/example6.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/python/docs/source/examples/example6.rst b/contrib/python/docs/source/examples/example6.rst
new file mode 100644
index 000000000000..d0fd68998017
--- /dev/null
+++ b/contrib/python/docs/source/examples/example6.rst
@@ -0,0 +1,12 @@
+Read zone file
+===============================
+
+This example shows how to read the content of a zone file
+
+.. literalinclude:: ../../../examples/ldns-zone.py
+ :language: python
+
+Zone file ``zone.txt``:
+
+.. literalinclude:: ../../../examples/zone.txt
+