[libvirt] Fwd: DNS for IPv6 addresses?

hongming honzhang at redhat.com
Tue Jan 12 09:50:43 UTC 2016


Hi Yaniv


Please refer to the following .


[root at localhost images]# virsh net-dumpxml dhcp
<network connections='2'>
   <name>dhcp</name>
   <uuid>066f0d89-67a6-42c8-bdeb-ed9420aaaf4f</uuid>
   <forward mode='nat'>
     <nat>
       <port start='1024' end='65535'/>
     </nat>
   </forward>
   <bridge name='virbr4' stp='on' delay='0'/>
   <mac address='52:54:00:c8:29:9f'/>
   <ip address='192.168.123.1' netmask='255.255.255.0'>
     <dhcp>
       <range start='192.168.123.2' end='192.168.123.254'/>
     </dhcp>
   </ip>
   <ip family='ipv6' address='2001:db8:ca2:2::1' prefix='64'>
     <dhcp>
       <range start='2001:db8:ca2:2:1::10' end='2001:db8:ca2:2:1::ff'/>
     </dhcp>
   </ip>
</network>

[root at localhost images]# virsh dumpxml rhel7.1|grep /interface -B7
     <interface type='network'>
       <mac address='52:54:00:82:49:b1'/>
       <source network='dhcp' bridge='virbr4'/>
       <target dev='vnet1'/>
       <model type='virtio'/>
       <alias name='net0'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
     </interface>


[root at localhost images]# virsh domifaddr rhel7.1 --source lease
  Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------
  vnet1      52:54:00:82:49:b1    ipv4         192.168.123.171/24
  -          -                    ipv6 2001:db8:ca2:2:1::1a/64


[root at localhost images]# cat /var/lib/libvirt/dnsmasq/virbr4.status
[
     {
         "ip-address": "192.168.123.171",
         "mac-address": "52:54:00:82:49:b1",
         "expiry-time": 1452594968
     },
     {
         "iaid": "8538545",
         "ip-address": "2001:db8:ca2:2:1::1a",
         "mac-address": "52:54:00:82:49:b1",
         "client-id": 
"00:04:ee:53:b7:a8:c7:46:ab:95:d0:86:88:ee:6e:51:a0:2a",
         "server-duid": "",
         "expiry-time": 1452594971
     }
]


Login guest to check ipv6 address . It is the same as the result 
returned by "domifaddr"

Thanks
Hongming


On 01/11/2016 03:24 PM, Min Zhan wrote:
> @shyu,
>
> Could you help have a look and reply this question?
>
> Regards,
> Min Zhan
>
> ----- Forwarded Message -----
>> From: "Yaniv Kaul" <ykaul at redhat.com>
>> To: libvirt-list at redhat.com
>> Sent: Friday, January 8, 2016 5:40:09 PM
>> Subject: [libvirt] DNS for IPv6 addresses?
>>
>> Is there a way to define DNS for IPv6 addresses?
>> Something like:
>> <dns forwardPlainNames =" yes " >
>> <host ip =" 192.168.200.4 " >
>> <hostname> lago_basic_suite_3_6_storage-iscsi </hostname>
>> </host>
>> </dns>
>>
>>
>>
>> Only for IPv6?
>> I reckon I can't just use an IPv6 address in the 'IP' attribute?
>>
>> TIA,
>> Y.
>>
>> --
>> libvir-list mailing list
>> libvir-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/libvir-list




More information about the libvir-list mailing list