Wind River Support Network

HomeDefectsLINCD-11352
Fixed

LINCD-11352 : External dns information exists in file /etc/resolv.conf only on disk+dhcpcd of nodistro image

Created: Dec 26, 2022    Updated: Feb 1, 2023
Resolved Date: Jan 14, 2023
Found In Version: 10.23.1.0
Fix Version: 10.23.5.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description


root@intel-x86-64:/opt/wr-test# cat /proc/cmdline
kernel console=ttyS0,115200n8 selinux=0 enforcing=0 root=/dev/sda1 rw nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/28621/rootfs,v3,tcp
root@intel-x86-64:/opt/wr-test# cat /proc/version
Linux version 5.15.84-yocto-standard (oe-user@oe-host) (x86_64-oe-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0.20220819) #1 SMP PREEMPT Tue Dec 20 18:10:42 UTC 2022
root@intel-x86-64:/opt/wr-test# cat /etc/resolv.conf

    This is /run/systemd/resolve/resolv.conf managed by man:systemd-resolved(8).
    Do not edit.
    #
    This file might be symlinked as /etc/resolv.conf. If you're looking at
    /etc/resolv.conf and seeing this text, you have followed the symlink.
    #
    This is a dynamic resolv.conf file for connecting local clients directly to
    all known uplink DNS servers. This file lists all configured search domains.
    #
    Third party programs should typically not access this file directly, but only
    through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
    different way, replace this symlink by a static file or a different symlink.
    #
    See man:systemd-resolved.service(8) for details about the supported modes of
    operation for /etc/resolv.conf.

nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 1.0.0.1

    Too many DNS servers configured, the following entries may be ignored.
    nameserver 8.8.4.4
    nameserver 2606:4700:4700::1111
    nameserver 2001:4860:4860::8888
    nameserver 2606:4700:4700::1001
    nameserver 2001:4860:4860::8844
    search .
    root@intel-x86-64:/opt/wr-test#

Steps to Reproduce

1) git clone --depth 1 --branch master-wr git://pek-git.wrs.com/wrlinux-x
2) ./wrlinux-x/setup.sh  --machine intel-x86-64 --dl-layers=1 --distro nodistro --templates feature/LAMP feature/azure feature/gcc-sanitizers feature/gperftools feature/grpc feature/ipv6 feature/krb5 feature/lttng feature/dhcp-server-kea feature/nerdctl feature/network-bond-libteam feature/nfsd feature/ntp feature/package-management feature/pam-faillock feature/podman feature/snmp feature/software-entropy feature/stig feature/sysklogd feature/system-stats feature/target-toolchain feature/tcpslice --layers meta-filesystems meta-iot-cloud meta-security-compliance meta-virtualization --dl-layers=1

 

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

4) . ./oe-init-build-env
 
IMAGE_INSTALL:append = " dhcpcd"

5) bitbake core-image-base
6) boot on target and harddisk startup
 
7) run command as problem descriptio
Live chat
Online