Package: netbase
Version: 5.4
Severity: wishlist
Dear Maintainer,
as per the subject, what about defining ip4-localhost and ip4-loopback
in /etc/hosts?
diff --git a/debian/netbase.postinst b/debian/netbase.postinst
index 4876e47..a893435 100644
--- a/debian/netbase.postinst
+++ b/debian/netbase.postinst
@@ -4,7 +4,7 @@ create_hosts_file() {
if [ -e /etc/hosts ]; then return 0; fi
cat > /etc/hosts <<-EOF
- 127.0.0.1 localhost
+ 127.0.0.1 localhost ip4-localhost ip4-loopback
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I see this was proposed also in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427067#5
It's nothing major of course and it can be added locally, but it's quite
convenient.
I was testing some web app locally with both IPv4 and IPv6 and the test
links look a lot nicer and symmetric using the host names.
I can send a proper patch as attachment if there is interest.
Thanks,
Antonio
-- System Information:
Debian Release: 9.0
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-- no debconf information
--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?