]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: formatnetwork: Document xmlns:dnsmasq
authorCole Robinson <crobinso@redhat.com>
Sun, 14 Jul 2019 23:46:15 +0000 (19:46 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 17 Jul 2019 21:18:56 +0000 (17:18 -0400)
Reviewed-by: Laine Stump <laine@laine.org>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
docs/formatnetwork.html.in

index 509cca9e8b7e47f081bc43a35e45b59e57eb5457..2448fb09e77fdb73bef7f3872eee9c02bb769055 100644 (file)
       </dd>
     </dl>
 
+    <h3><a id="elementsNamespaces">Network namespaces</a></h3>
+
+    <p>
+      A special XML namespace is available for passing options directly to the
+      underlying dnsmasq configuration file. Usage of XML namespaces comes with no
+      support guarantees, so use at your own risk.
+    </p>
+
+    <p>
+      This example XML will pass the option strings <code>foo=bar</code> and
+      <code>cname=*.foo.example.com,master.example.com</code> directly to the
+      underlying dnsmasq instance.
+      <pre>
+&lt;network xmlns:dnsmasq='http://libvirt.org/schemas/network/dnsmasq/1.0'&gt;
+  ...
+  &lt;dnsmasq:options&gt;
+    &lt;dnsmasq:option value="foo=bar"/&gt;
+    &lt;dnsmasq:option value="cname=*.foo.example.com,master.example.com"/&gt;
+  &lt;/dnsmasq:options&gt;
+&lt;/network&gt;</pre>
+    </p>
+
     <h2><a id="examples">Example configuration</a></h2>
 
     <h3><a id="examplesNAT">NAT based network</a></h3>