diff --git a/templates/preseed.cfg.j2 b/templates/preseed.cfg.j2 index 77044f7..9455b25 100644 --- a/templates/preseed.cfg.j2 +++ b/templates/preseed.cfg.j2 @@ -68,7 +68,7 @@ d-i netcfg/choose_interface select auto # values set here. However, setting the values still prevents the questions # from being shown, even if values come from dhcp. d-i netcfg/get_hostname string {{ inventory_hostname }} -d-i netcfg/get_domain string unassigned-domain +d-i netcfg/get_domain string {{ dns_domain | default('unassigned-domain') }} # If you want to force a hostname, regardless of what either the DHCP # server returns or what the reverse DNS entry for the IP is, uncomment