Merge pull request #19185 from Mic92/networking
networking: enable "multi on" in resolver settings
This commit is contained in:
commit
3dbecd4f91
@ -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 {
|
networking.dnsSingleRequest = lib.mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -171,6 +184,9 @@ in
|
|||||||
${cfg.extraHosts}
|
${cfg.extraHosts}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# /etc/host.conf: resolver configuration file
|
||||||
|
"host.conf".text = cfg.hostConf;
|
||||||
|
|
||||||
# /etc/resolvconf.conf: Configuration for openresolv.
|
# /etc/resolvconf.conf: Configuration for openresolv.
|
||||||
"resolvconf.conf".text =
|
"resolvconf.conf".text =
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user