HomeDefectsLIN1022-5860
Fixed

LIN1022-5860 : wget: unable to resolve host address 'localhost'

Created: Nov 15, 2023    Updated: Apr 29, 2024
Resolved Date: Apr 29, 2024
Found In Version: 10.22.33.14
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description

root@intel-x86-64:/opt/wr-test# wget -6 http://localhost (http://localhost/)

-{-}2023-11-15 03:18:14{-}- [http://localhost/]

Resolving localhost... failed: No IPv4/IPv6 addresses for host.

wget: unable to resolve host address 'localhost'

root@intel-x86-64:/opt/wr-test# ping localhost

PING localhost(localhost (::1)) 56 data bytes

64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.054 ms

64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.104 ms

64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.035 ms

64 bytes from localhost (::1): icmp_seq=4 ttl=64 time=0.090 ms

Steps to Reproduce

1.git clone --depth 1 --branch WRLINUX_10_22_LTS git://pek-git.wrs.com/wrlinux-x

2.  wrlinux-10/setup.sh  --machine intel-x86-64 --dl-layers --distro nodistro --templates feature/LAMP feature/aws feature/azure feature/docker feature/gcc-sanitizers feature/gperftools feature/grpc feature/ipv6 feature/krb5 feature/kubernetes feature/lttng feature/mariadb feature/network-bond-libteam feature/nfsd feature/ntp feature/opencv feature/package-management feature/pam-faillock feature/podman feature/python-tkinter feature/sftp-server feature/snmp feature/software-entropy feature/sysklogd feature/system-stats feature/systemd-bootchart feature/target-toolchain feature/tcpslice feature/xfce --layers meta-cloud-services meta-filesystems meta-iot-cloud meta-security-compliance meta-virtualization --dl-layers

3 . ./environment-setup-x86_64-wrlinuxsdk-linux

4 . ./oe-init-build-env

5 vim conf/local.conf

IMAGE_INSTALL:append = " wget apache2"

6 bitbake core-image-base

7) boot the target and run commands per problem description