nixpkgs-suyu/nixos/modules/tasks
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
..
filesystems zfsUnstable: init at 2017-09-12 2017-09-15 17:59:37 +02:00
bcache.nix nixos/bcache: add services.udev.packages = [ bcache-tools ] 2017-06-10 17:10:49 +02:00
cpu-freq.nix nixos/cpu-freq: list correct default governor in description 2016-08-28 17:14:37 -05:00
encrypted-devices.nix nixos: apply toposort to fileSystems to support bind and move mounts 2016-08-23 18:14:05 +00:00
filesystems.nix tasks/filesystems: Make sure /dev/pts/ptmx is 0666 (#28490) 2017-08-30 01:50:29 +02:00
kbd.nix kbd service: use /dev/tty1 for systemd-vconsole-setup 2017-02-16 17:08:14 +03:00
lvm.nix
network-interfaces-scripted.nix nixos: add option for bind to not resolve local queries (#29503) 2017-09-18 22:54:29 +02:00
network-interfaces-systemd.nix networkd: fix setting both defaultGateway{,6} 2017-03-25 14:30:05 +01:00
network-interfaces.nix wirelessInterfaces: Add a missing parameter 2017-05-28 09:34:43 +03:00
powertop.nix typo: powerManagment -> powerManagement (#25813) 2017-05-16 18:22:44 +02:00
scsi-link-power-management.nix nixos: set scsi link power policy using udev 2015-10-25 19:38:53 +01:00
swraid.nix sw-raid: rename mdadmShutdown 2016-03-09 21:06:27 +03:00
trackpoint.nix Add Elantech ETPS/2 Trackpoint (ThinkPad Yoga 260) 2017-04-22 13:42:57 +02:00
tty-backgrounds-combine.sh