networking: enable "multi on" in resolver settings

this allows to return ipv4/ipv6 addresses for the same host in /etc/hosts.
fixes #19148
This commit is contained in:
Jörg Thalheim 2016-10-03 09:17:43 +02:00
parent 1c11432884
commit 4792af66c3
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -29,6 +29,19 @@ in
'';
};
networking.hostConf = lib.mkOption {
type = types.lines;
default = "multi on";
example = ''
multi on
reorder on
trim lan
'';
description = ''
The contents of <filename>/etc/host.conf</filename>. See also <citerefentry><refentrytitle>host.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
'';
};
networking.dnsSingleRequest = lib.mkOption {
type = types.bool;
default = false;
@ -171,6 +184,9 @@ in
${cfg.extraHosts}
'';
# /etc/host.conf: resolver configuration file
"host.conf".text = cfg.hostConf;
# /etc/resolvconf.conf: Configuration for openresolv.
"resolvconf.conf".text =
''