[systemd-devel] nss-myhostname: why don't loopback interfaces appear?
Daurnimator
quae at daurnimator.com
Tue Jun 2 22:40:54 PDT 2015
I was playing around with nss, and found that my loopback interface ip
doesn't appear from nss-myhostname.
Rather, my other ones do.
Furthermore, unless I request IPv4, link-local IPv6 addresses are
returned. Is this expected?
$ uname -n
daurn-m3800
$ getent hosts daurn-m3800
fe80::aed1:b8ff:fec0:d113 daurn-m3800
fe80::9eeb:e8ff:fe1b:f42d daurn-m3800
$ getent ahostsv4 daurn-m3800
192.168.2.229 STREAM daurn-m3800
192.168.2.229 DGRAM
192.168.2.229 RAW
192.168.2.21 STREAM
192.168.2.21 DGRAM
192.168.2.21 RAW
$ getent ahostsv6 daurn-m3800
fe80::aed1:b8ff:fec0:d113 STREAM daurn-m3800
fe80::aed1:b8ff:fec0:d113 DGRAM
fe80::aed1:b8ff:fec0:d113 RAW
fe80::9eeb:e8ff:fe1b:f42d STREAM
fe80::9eeb:e8ff:fe1b:f42d DGRAM
fe80::9eeb:e8ff:fe1b:f42d RAW
# For reference, my current network setup:
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
state UP group default qlen 1000
link/ether ac:d1:b8:c0:d1:13 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.229/24 brd 192.168.2.255 scope global dynamic wlp6s0
valid_lft 64025sec preferred_lft 64025sec
inet6 fe80::aed1:b8ff:fec0:d113/64 scope link
valid_lft forever preferred_lft forever
5: enp0s20u2u4u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
fq_codel state UP group default qlen 1000
link/ether 9c:eb:e8:1b:f4:2d brd ff:ff:ff:ff:ff:ff
inet 192.168.2.21/24 brd 192.168.2.255 scope global dynamic enp0s20u2u4u4
valid_lft 64025sec preferred_lft 64025sec
inet6 fe80::9eeb:e8ff:fe1b:f42d/64 scope link
valid_lft forever preferred_lft forever
More information about the systemd-devel
mailing list