Commit Graph

227069 Commits

Author SHA1 Message Date
Michael Weiss
234d95a6fc
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>
2020-05-25 14:06:25 +02:00
Mario Rodas
bfdb43f1c3
Merge pull request #88832 from r-ryantm/auto-update/lyra
lyra: 1.3 -> 1.4
2020-05-25 07:01:06 -05:00
Mario Rodas
e61b2b165c
Merge pull request #88860 from r-ryantm/auto-update/biblesync
biblesync: 2.0.1 -> 2.1.0
2020-05-25 07:00:13 -05:00
Mario Rodas
1a4e8a10a7
Merge pull request #88865 from r-ryantm/auto-update/bup
bup: 0.30 -> 0.30.1
2020-05-25 06:43:48 -05:00
Jan Tojnar
27e0dff5ac
Merge pull request #87531 from r-ryantm/auto-update/uchardet 2020-05-25 13:35:00 +02:00
Mario Rodas
66daaaf7e8
Merge pull request #88818 from r-ryantm/auto-update/imgurbash2
imgurbash2: 3.1 -> 3.2
2020-05-25 06:28:08 -05:00
Jan Tojnar
7318f93c84
Merge pull request #86926 from r-ryantm/auto-update/gnome-latex 2020-05-25 13:27:14 +02:00
Mario Rodas
e9ea9b2aee
Merge pull request #88868 from davidtwco/grafana-loki-1.5.0
grafana-loki: 1.4.0 -> 1.5.0
2020-05-25 06:25:35 -05:00
Mario Rodas
3daaf6636d
Merge pull request #88850 from r-ryantm/auto-update/sngrep
sngrep: 1.4.6 -> 1.4.7
2020-05-25 06:24:19 -05:00
Mario Rodas
be1b02cbd1
Merge pull request #88830 from r-ryantm/auto-update/libxsmm
libxsmm: 1.13 -> 1.15
2020-05-25 06:21:53 -05:00
leo60228
c49c8a7d6b
vimPlugins.vim-graphql: init at 2020-03-30 (#88840) 2020-05-25 13:18:44 +02:00
Jörg Thalheim
fbc9515e66
Merge pull request #88855 from r-ryantm/auto-update/telegraf 2020-05-25 12:15:11 +01:00
Mario Rodas
246b93a81b
Merge pull request #88838 from r-ryantm/auto-update/monolith
monolith: 2.2.5 -> 2.2.6
2020-05-25 06:07:11 -05:00
Jan Tojnar
9005d43d3e
Merge pull request #88236 from r-ryantm/auto-update/tpm2-tools 2020-05-25 12:53:16 +02:00
Jan Tojnar
ab0ad802e2
Merge pull request #88535 from r-ryantm/auto-update/gnumeric 2020-05-25 12:52:27 +02:00
Jan Tojnar
09410b58d4
Merge pull request #88215 from r-ryantm/auto-update/qgnomeplatform 2020-05-25 12:47:08 +02:00
Jan Tojnar
4d9de2d85d
Merge pull request #83534 from mmilata/libosinfo-bump
osinfo-db-tools: 1.6.0 -> 1.7.0, osinfo-db: 20200214 -> 20200515, libosinfo: fix test
2020-05-25 12:38:04 +02:00
David Wood
2f0955e722
grafana-loki: 1.4.0 -> 1.5.0 2020-05-25 11:35:16 +01:00
zowoq
37a87c343c podman: update comments in wrapper 2020-05-25 12:27:49 +02:00
zowoq
dd67a7eacb buildah: add wrapper 2020-05-25 12:27:49 +02:00
zowoq
2689dfaa08 nixos/cri-o: default to upstream pause 2020-05-25 12:27:49 +02:00
zowoq
eeff166faa nixos/cri-o: add runtime option 2020-05-25 12:27:49 +02:00
zowoq
9e7fbc6f2c nixos/cri-o, cri-o: add wrapper 2020-05-25 12:27:49 +02:00
José Romildo Malaquias
4b0d5ecee8
Merge pull request #88678 from maxeaubrey/yaru_20.04.7
yaru-theme: 20.04.6 -> 20.04.7
2020-05-25 07:24:10 -03:00
Jan Tojnar
0af23b05ab
Merge pull request #75435 from Elyhaka/fprintd 2020-05-25 12:22:48 +02:00
R. RyanTM
33b881f334 bup: 0.30 -> 0.30.1 2020-05-25 09:59:49 +00:00
Mario Rodas
074ab51316
biblesync: update homepage 2020-05-25 04:20:00 -05:00
Vladimír Čunát
da752902c1
knot-dns: 2.9.4 -> 2.9.5
There's a bugfix important for some auto-signer setups.
https://gitlab.labs.nic.cz/knot/knot-dns/-/tags/v2.9.5

$ nix build -f nixos/release-combined.nix nixos.tests.knot.x86_64-linux
2020-05-25 10:56:49 +02:00
Domen Kožar
c969647e50
Merge pull request #86456 from kraem/kraem/picom-v8
picom: 7.5 -> 8
2020-05-25 10:33:51 +02:00
R. RyanTM
2a754d6313 biblesync: 2.0.1 -> 2.1.0 2020-05-25 08:31:33 +00:00
adisbladis
d8b6e82126
Merge pull request #88856 from zowoq/prefetch-docker
dockerTools: fix skopeo commands
2020-05-25 09:52:09 +02:00
Michele Guerini Rocco
379690ba90
Merge pull request #85539 from rnhmjoj/breezy
treewide: replace bazaar with breezy
2020-05-25 09:37:14 +02:00
Lassulus
e7e4a23044
Merge pull request #87827 from mweinelt/activemq
activemq: 5.14.5 → 5.15.12
2020-05-25 09:36:10 +02:00
rnhmjoj
201bf4bfb8
nixos/release-notes: document bazaar removal 2020-05-25 09:28:48 +02:00
rnhmjoj
aee614c996
treewide: replace bazaar with breezy 2020-05-25 09:22:54 +02:00
rnhmjoj
6a13fe4ece
bazaar: remove
Bazaar is deprecated in favour of Breezy, which is backward compatible
Python 3 fork of the original VCS.
2020-05-25 09:22:53 +02:00
zowoq
365d07cea0 dockerTools: fix skopeo commands 2020-05-25 14:29:54 +10:00
Mario Rodas
3a3cbfd12b
monolith: enable on darwin 2020-05-24 23:23:23 -05:00
R. RyanTM
07178d7972 telegraf: 1.14.2 -> 1.14.3 2020-05-25 04:10:50 +00:00
Mario Rodas
2892a24695
Merge pull request #88820 from r-ryantm/auto-update/just
just: 0.5.10 -> 0.5.11
2020-05-24 22:52:43 -05:00
Mario Rodas
3c1273fdb8
Merge pull request #88848 from r-ryantm/auto-update/sensu-go-agent
sensu-go-agent: 5.20.0 -> 5.20.1
2020-05-24 22:51:05 -05:00
Mario Rodas
9751b67df8
Merge pull request #88826 from cole-h/zoxide
zoxide: 0.4.0 -> 0.4.1
2020-05-24 22:49:57 -05:00
Mario Rodas
bc4469005e
Merge pull request #88824 from r-ryantm/auto-update/lean
lean: 3.13.1 -> 3.14.0
2020-05-24 22:49:35 -05:00
Mario Rodas
06d6c42255
Merge pull request #88819 from r-ryantm/auto-update/jsonnet
jsonnet: 0.15.0 -> 0.16.0
2020-05-24 22:48:18 -05:00
R. RyanTM
ba6a893218 sngrep: 1.4.6 -> 1.4.7 2020-05-25 03:39:15 +00:00
R. RyanTM
b9a82df839 sensu-go-agent: 5.20.0 -> 5.20.1 2020-05-25 03:19:26 +00:00
Dmitry Kalinkin
7a2307dc4b
Merge pull request #84523 from erictapen/factorio-18.17
factorio-{,headless}-experimental: 17.79 -> 18.26
2020-05-24 22:47:14 -04:00
Tim Steinbach
89998eb8da
oh-my-zsh: 2020-05-21 -> 2020-05-24 2020-05-24 20:51:34 -04:00
Michael Raskin
71231b6407
Merge pull request #88839 from 7c6f434c/fix-lazarus
lazarus: fix linking by the IDE;
2020-05-25 00:32:22 +00:00
Sascha Grunert
6653328aef cri-o: update module configuration
- Update the default pause image
- Set the cgroup manager to systemd
- Enable `manage_ns_lifecycle` instead of the deprecated
  `manage_network_ns_lifecycle` option

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-05-25 02:24:57 +02:00