Why does gethostlatency display a delay in resolving the loopback address and hostname?
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
```
root@ubuntu-focal:/home/vagrant# cat /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.1.1 ubuntu-focal ubuntu-focal
root@ubuntu-focal:/home/vagrant# ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: enp0s3: mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 02:b7:1d:9c:e0:75 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
valid_lft 85354sec preferred_lft 85354sec
inet6 fe80::b7:1dff:fe9c:e075/64 scope link
valid_lft forever preferred_lft forever
3: enp0s8: mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:51:60:c3 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global enp0s8
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe51:60c3/64 scope link
valid_lft forever preferred_lft forever
/usr/sbin/gethostlatency-bpfcc
TIME PID COMM LATms HOST
08:12:10 2792 sshd 0.06 10.0.2.2
08:12:10 2792 sshd 0.05 10.0.2.2
08:12:10 2792 sshd 0.05 10.0.2.2
08:12:10 2879 sshd 0.06 10.0.2.2
08:12:10 2792 sshd 0.06 10.0.2.2
08:12:18 2897 isc-worker0000 0.04 127.0.0.1
08:12:18 2897 isc-worker0000 0.02 ::1
08:12:39 2918 sudo 0.34 ubuntu-focal
08:12:55 3073 kubelet 1.04 ubuntu-focal
08:12:55 3073 kubelet 0.09 ubuntu-focal
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.