I m trying to address a container with public ipv4 and ipv6. Badly I ve currently a single ipv4, but an ipv6 network. I want to expose services like webserver and ssh in theses containers. And will certainly have an issue to proxy the mails but that’s not the point.
I want lxd’s dnsmasq able to respond a public ipv4 and the public ipv6.
I succedded to address my containers with ipv6 and getting dns record. But I stuck on ipv4. So, currently, I’ve host nic eth0 (ipv4, ipv6) and host bridge lxdbr0 for lxd c1 (ipv6):
host nic eth0 is listen interface for a host dnsmasq, set to handle dns ipv4 and query lxd dnsmasq about ipv6.
lxdbr0 is listen interface for lxd dnsmasq.
I tryed somes dnsmasq directives:
address, but it overrides all the records and I dont get AAAA.
host-record, but lxd is overriding it.
Host-record is the way to go, in my opnion, but If I set host-record=non-c,1.2.3.4, then non-c A is correct but I miss non-c AAAA moreover, the non-c container doesnt exists.
At the moment, my issue is: why lxd is overriding host-record A, when I set ipv4.address: none ? How could I tell dnsmasq “complet your answer AAAA with this A” ?
No and I dont want. I want the dns record to point to the host, not the container. It would be far simpler with public ipv4 yeah, but I want to find a way without.
So you want to setup an internal domain name of lxd.odass.org that points to your host’s private IP? (and then presumably you’ll use the proxy device to forward that into the container?).
my dig query had form “dig name A name AAAA @ns” instead of “dig name A @ns name AAAA @ns”. I just realized I had to put @ns per query.
dnsmasq host-record directive need the full name and doesn’t complete the zone with the short name. I had to set host-record=first.lxd.odass.org,95.217.182.125 instead of host-record=first,95.217.182.125