Comparing changes
Open a pull request
base repository: NixOS/nixpkgs-channels
base: 25e8015fed29
head repository: NixOS/nixpkgs-channels
compare: aa364b90d4e3
- 20 commits
- 14 files changed
- 10 contributors
Commits on May 9, 2020
Commits on May 25, 2020
-
nixos/networking: Add the FQDN and hostname to /etc/hosts
This fixes the output of "hostname --fqdn" (previously the domain name was not appended). Additionally it's now possible to use the FQDN. This works by unconditionally adding two entries to /etc/hosts: 127.0.0.1 localhost ::1 localhost These are the first two entries and therefore gethostbyaddr() will always resolve "127.0.0.1" and "::1" back to "localhost" [0]. This works because nscd (or rather the nss-files module) returns the first matching row from /etc/hosts (and ignores the rest). The FQDN and hostname entries are appended later to /etc/hosts, e.g.: 127.0.0.2 nixos-unstable.test.tld nixos-unstable ::1 nixos-unstable.test.tld nixos-unstable Note: We use 127.0.0.2 here to follow nss-myhostname (systemd) as close as possible. This has the advantage that 127.0.0.2 can be resolved back to the FQDN but also the drawback that applications that only listen to 127.0.0.1 (and not additionally ::1) cannot be reached via the FQDN. If you would like this to work you can use the following configuration: ```nix networking.hosts."127.0.0.1" = [ "${config.networking.hostName}.${config.networking.domain}" config.networking.hostName ]; ``` Therefore gethostbyname() resolves "nixos-unstable" to the FQDN (canonical name): "nixos-unstable.test.tld". Advantages over the previous behaviour: - The FQDN will now also be resolved correctly (the entry was missing). - E.g. the command "hostname --fqdn" will now work as expected. Drawbacks: - Overrides entries form the DNS (an issue if e.g. $FQDN should resolve to the public IP address instead of 127.0.0.1) - Note: This was already partly an issue as there's an entry for $HOSTNAME (without the domain part) that resolves to 127.0.1.1 (!= 127.0.0.1). - Unknown (could potentially cause other unexpected issues, but special care was taken). [0]: Some applications do apparently depend on this behaviour (see c578924) and this is typically the expected behaviour. Co-authored-by: Florian Klink <flokli@flokli.de>
-
-
nixos/tests/hostname: init (check system's host name)
NixOS currently has issues with setting the FQDN of a system in a way where standard tools work. In order to help with experimentation and avoid regressions, add a test that checks that the hostname is reported as the user wanted it to be. Co-authored-by: Michael Weiss <dev.primeos@gmail.com>
-
nixos: Require networking.hostName to be a valid DNS label
This also means that the hostname must not contain the domain name part anymore (i.e. must not be a FQDN). See RFC 1035 [0], "man 5 hostname", or the kernel documentation [1]. Note: For legacy reasons we also allow underscores inside of the label but this is not recommended and intentionally left undocumented. [0]: https://tools.ietf.org/html/rfc1035 [1]: https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#domainname-hostname Co-authored-by: zimbatm <zimbatm@zimbatm.com>
-
-
-
-
Merge pull request #76542 from primeos/etc-hosts-fqdn-fix
nixos/networking: Add the FQDN and hostname to /etc/hosts
-
-
-
Merge pull request #88879 from r-ryantm/auto-update/FlexGet
flexget: 3.1.30 -> 3.1.56
Commits on May 26, 2020
-
Merge pull request #77281 from bcdarwin/python-livelossplot
python3Packages.livelossplot: init at v0.5.0
-
Merge pull request #88897 from mweinelt/miniflux
miniflux: 2.0.19 -> 2.0.21
-
Merge pull request #87447 from bcdarwin/ocaml-torch
ocamlPackages.torch: init at 0.8
-
Merge pull request #88883 from r-ryantm/auto-update/gexiv2
gexiv2: 0.12.0 -> 0.12.1
-
Merge pull request #88890 from r-ryantm/auto-update/gnome-software
gnome3.gnome-software: 3.36.0 -> 3.36.1
-
Merge pull request #75237 from r-ryantm/auto-update/gmic
gmic: 2.7.5 -> 2.8.0
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 25e8015fed29...aa364b90d4e3