nixpkgs/nixos
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
..
doc/manual dockerTools.pullImage: release note regarding sha256 argument value 2017-09-17 08:26:02 +01:00
lib Deduplicate some filterSource invocations 2017-08-29 20:27:04 -04:00
maintainers nixos/nova-image: cleanup image builders (#29242) 2017-09-11 17:33:33 +01:00
modules nixos: add option for bind to not resolve local queries (#29503) 2017-09-18 22:54:29 +02:00
tests tests: add initrd-network-ssh test 2017-09-18 19:51:46 +02:00
COPYING
default.nix Remove nixFallback 2017-03-06 15:54:50 +01:00
README
release-combined.nix nixos/release-combined: remove basic kernel tests 2017-09-16 12:45:30 +02:00
release-small.nix nixos/release-small.nix: cleanup to use default versions 2017-01-27 15:33:54 +01:00
release.nix tests: add initrd-network-ssh test 2017-09-18 19:51:46 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.