From b5ccfd973ec16c4d46fedd070cafeeaeb6253c22 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 14 Mar 2023 23:02:28 +0100 Subject: [PATCH] resolve dns.dmz to this host change hostname --- cloud_init.cfg.tftpl | 1 + dnsmasq.conf | 2 ++ variables.tf | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cloud_init.cfg.tftpl b/cloud_init.cfg.tftpl index f3ebf4f..ad50333 100644 --- a/cloud_init.cfg.tftpl +++ b/cloud_init.cfg.tftpl @@ -12,5 +12,6 @@ chpasswd: packages: - qemu-guest-agent - dnsmasq + - dnsutils package_update: true package_upgrade: true diff --git a/dnsmasq.conf b/dnsmasq.conf index 28a46c7..b701045 100644 --- a/dnsmasq.conf +++ b/dnsmasq.conf @@ -35,3 +35,5 @@ server=/pim.kunis.nl/192.168.30.3 # Enable extended logging log-dhcp log-queries +# Resolve dns.dmz to addresses on main NIC +interface-name=dns.dmz,ens3 diff --git a/variables.tf b/variables.tf index a603e43..352093d 100644 --- a/variables.tf +++ b/variables.tf @@ -4,7 +4,7 @@ variable "name" { variable "libvirt_endpoint" { type = string - default = "qemu+ssh://root@debian.lan/system" + default = "qemu+ssh://root@atlas.lan/system" } variable "host_public_key" {