Hi LXD users,
We’re trying to setup the DNS on a lxdbr0 bridge with DHCP enabled. And then publish the DNS information to another DNS server.
Here is the config for the network zone (ip info hidden)
description: ""
config:
peers.xxx.address: 7.7.7.7
name: pvn.lxd
used_by: []
Here is the relavant config for the network lxdbr0
(ip info hidden)
bridge.mtu: "1500"
dns.zone.forward: pvn.lxd
ipv4.address: 11.11.11.0/24
ipv4.dhcp: "true"
ipv4.dhcp.expiry: 1d
ipv4.dhcp.ranges: 11.11.11.11 - 11.11.11.111
ipv4.nat: "false"
ipv6.address: none
Since the DNS information comes from the DHCP leases, I did lxc network list-leases lxdbr0
...
| vm1 | 00:16:3e:fe:65:ac | 11.11.11.12 | DYNAMIC | lxd-cluster0|
+-----------+-------------------+--------------+---------+-----------+
| vm1 | 00:16:3e:fe:65:ac |11.11.11.12 | DYNAMIC | lxd-cluster1|
+-----------+-------------------+--------------+---------+-----------+
| vm1 | 00:16:3e:fe:65:ac | 11.11.11.12 | DYNAMIC | lxd-cluster2|
+-----------+-------------------+--------------+---------+-----------+
| vm1 | 00:16:3e:fe:65:ac | 11.11.11.12 | DYNAMIC | lxd-cluster3|
+-----------+-------------------+--------------+---------+-----------+
| vm1 | 00:16:3e:fe:65:ac | 11.11.11.12 | DYNAMIC | lxd-cluster4|
+-----------+-------------------+--------------+---------+-----------+
| vm1 | 00:16:3e:fe:65:ac | 11.11.11.12 | DYNAMIC | lxd-cluster5|
+-----------+-------------------+--------------+---------+-----------+
...
We found that the leases is repeated once for each member in the cluster. And therefore creating multiple entries in the DNS.
I’m wondering is this an expected behavior to sync the lease?