Merge pull request #147 from offlinehacker/nameservers

Static nameservers should have precedence
This commit is contained in:
Peter Simons 2013-04-22 02:16:11 -07:00
commit 8c702b7c28

View file

@ -277,7 +277,7 @@ in
script = script =
'' ''
# Set the static DNS configuration, if given. # Set the static DNS configuration, if given.
${pkgs.openresolv}/sbin/resolvconf -a static <<EOF ${pkgs.openresolv}/sbin/resolvconf -m 1 -a static <<EOF
${optionalString (cfg.nameservers != [] && cfg.domain != "") '' ${optionalString (cfg.nameservers != [] && cfg.domain != "") ''
domain ${cfg.domain} domain ${cfg.domain}
''} ''}