]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
networkxml2xmltest: Add example of multiple addresses having the same hostname
authorPeter Krempa <pkrempa@redhat.com>
Wed, 14 Jul 2021 07:20:18 +0000 (09:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Jul 2021 12:50:45 +0000 (14:50 +0200)
Having multiple addresses for the same hostname is a legitimate
configuration in DNS. Add test data to cover this case.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/networkxml2xmlin/nat-network-dns-hosts.xml
tests/networkxml2xmlout/nat-network-dns-hosts.xml
tests/networkxml2xmlupdateout/nat-network-dns-more-hosts.xml
tests/networkxml2xmlupdateout/nat-network-no-hosts.xml

index da65267ec58ab20447e93a080cc68e5336df50f2..58608f6959c88e0525e5552841846d76ef44d727 100644 (file)
@@ -8,6 +8,14 @@
       <hostname>host</hostname>
       <hostname>gateway</hostname>
     </host>
+    <host ip='192.168.122.2'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
+    <host ip='fd8f:1391:3a82:150::c0a8:9603'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
   </dns>
   <ip address='192.168.122.1' netmask='255.255.255.0'>
   </ip>
index 17e269710b54b4a19b02539d06fe3165c703a738..7c561aad2a31b63a4fa59735884361eed8f80f24 100644 (file)
       <hostname>host</hostname>
       <hostname>gateway</hostname>
     </host>
+    <host ip='192.168.122.2'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
+    <host ip='fd8f:1391:3a82:150::c0a8:9603'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
   </dns>
   <ip address='192.168.122.1' netmask='255.255.255.0'>
   </ip>
index 5464d90ab95b29743f5278a4f703816d927605ad..dfc12eb2f904830367b5dd8d914e6b30da8b6b86 100644 (file)
       <hostname>host</hostname>
       <hostname>gateway</hostname>
     </host>
+    <host ip='192.168.122.2'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
+    <host ip='fd8f:1391:3a82:150::c0a8:9603'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
   </dns>
   <ip address='192.168.122.1' netmask='255.255.255.0'>
   </ip>
index ee2d7737296b84b419b5d49193cfecd1047c70ea..7cff9edc093be6a29dd2d68a1335fedf12e6c33a 100644 (file)
@@ -5,7 +5,16 @@
     <interface dev='eth0'/>
   </forward>
   <bridge name='virbr0' stp='on' delay='0'/>
-  <dns forwardPlainNames='no'/>
+  <dns forwardPlainNames='no'>
+    <host ip='192.168.122.2'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
+    <host ip='fd8f:1391:3a82:150::c0a8:9603'>
+      <hostname>shared</hostname>
+      <hostname>names</hostname>
+    </host>
+  </dns>
   <ip address='192.168.122.1' netmask='255.255.255.0'>
   </ip>
 </network>