nixpkgs/nixos/modules/config
gwitmond bd52618c9d
nixos: add option for bind to not resolve local queries (#29503)
When the user specifies the networking.nameservers setting in the
configuration file, it must take precedence over automatically
derived settings.

The culprit was services.bind that made the resolver set to
127.0.0.1 and ignore the nameserver setting.

This patch adds a flag to services.bind to override the nameserver
to localhost. It defaults to true. Setting this to false prevents the
service.bind and dnsmasq.resolveLocalQueries settings from
overriding the users' settings.

Also, when the user specifies a domain to search, it must be set in
the resolver configuration, even if the user does not specify any
nameservers.

(cherry picked from commit 670b4e29adc16e0a29aa5b4c126703dcca56aeb6)

This commit was accidentally merged to 17.09 but was intended for
master. This is the cherry-pick to master.
2017-09-18 22:54:29 +02:00
..
fonts nixos/fontconfig: fix substitutions option (#28895) 2017-09-05 16:20:42 +00:00
debug-info.nix docs: use overrideAttrs instead of overrideDerivation 2016-10-30 14:34:40 -04:00
gnu.nix fix indentation in several nixos option descriptions 2016-12-16 18:29:25 +01:00
i18n.nix nixos: update glibc locales link 2017-09-03 18:00:35 +00:00
krb5.nix Add kerberos mappings for MIT exchange server 2016-05-11 09:09:24 -04:00
ldap.nix nixos/ldap: remove tls_checkpeer no when using TLS 2017-07-19 19:23:40 -04:00
networking.nix nixos: add option for bind to not resolve local queries (#29503) 2017-09-18 22:54:29 +02:00
no-x-libs.nix networkmanager_iodine: init at 1.2.0 2017-08-30 02:58:29 +02:00
nsswitch.nix nsswitch: add systemd module 2017-08-03 10:51:06 +08:00
power-management.nix nixos-generate-config: detect CPU governor 2017-01-02 17:20:28 +01:00
pulseaudio.nix nixos/pulseaudio: Fix for missing zeroconf module 2017-08-03 14:21:34 +02:00
shells-environment.nix environment.profileRelativeEnvVars: remove sbin from example 2017-05-09 08:51:04 +01:00
swap.nix change swap.randomEncryption config option to "coercedTo" for backwards compatibility 2017-07-26 20:57:10 +03:00
sysctl.nix tree-wide: remove uses of features.grsecurity 2017-05-14 15:08:51 +02:00
system-environment.nix types: loeOf -> listOf 2016-11-05 21:46:42 +01:00
system-path.nix nixos: add pathes for KDE applications 2017-08-06 12:55:10 +03:00
terminfo.nix terminfo: symlink terminfo to /etc for ncurses 2017-06-30 11:17:11 +02:00
timezone.nix nixos/timezone: Fix evaluation error 2017-07-31 17:15:30 +02:00
unix-odbc-drivers.nix unix-odbc-drivers module: update for new unixODBCDrivers 2016-04-26 23:58:11 +03:00
update-users-groups.pl update-users-groups.pl: Keep track of deallocated UIDs/GIDs 2017-03-29 18:13:18 +02:00
users-groups.nix environment.etc: add user/group option 2017-07-29 23:56:46 +01:00
vpnc.nix nixos/vpnc: fix formatting of example 2016-02-27 22:25:39 +13:00
zram.nix modprobe service: drop kmod wrapper 2016-08-19 17:56:49 +03:00