Hi,

This has nothing to do with busybox nor the kernel, but the glibc version
the kernel is built against. According to the manual below the order
keyword in your /etc/host.conf file may be deprecated. Try strace ping
node01 to see which system call drops an error.

http://man7.org/linux/man-pages/man5/host.conf.5.html

Cheers,
Attila


David Mathog <[email protected]> ezt írta (időpont: 2019. márc. 2., Szo,
1:41):

> The name resolution configuration which worked under 2.6.* kernels and a
> busybox from 10 years ago no longer functions.  What is the minimum
> needed to get name resolution with a 3.14.* kernel and current busybox?
>
> This is what I have, which doesn't work (3.14.78 kernel, perhaps it
> needs
> some module loaded or built in???)
>
> echo "filling /etc/host.conf"
> cat >>/etc/host.conf <<EOFHOSTCONF
> order hosts,bind
> multi on
> EOFHOSTCONF
> #
> echo "filling /etc/hosts"
> cat >>/etc/hosts <<EOFHOSTS
> 192.168.1.1     node01.cluster  node01
> 192.168.1.2     node02.cluster  node02
> #etc.
> EOFHOSTS
>
> cat >>/etc/nsswitch.conf <<EOFSWITCH
> passwd:     files nis sss
> shadow:     files nis sss
> group:      files nis sss
> hosts:      files dns
> bootparams: nisplus [NOTFOUND=return] files
> ethers:     files
> netmasks:   files
> networks:   files
> protocols:  files
> rpc:        files
> services:   files sss
> netgroup:   files nis sss
> publickey:  nisplus
> automount:  files nis
> aliases:    files nisplus
> EOFSWITCH
>
> which used to be enough for
>
>    ping node01
>
> or
>
>    ping node01.cluster
>
> to work.  But it doesn't anymore.  Instead ping complains that it cannot
> resolve the name.  ping by IP number works.  ping is just a symbolic
> link to busybox.
>
> Thanks,
>
> David Mathog
> [email protected]
> Manager, Sequence Analysis Facility, Biology Division, Caltech
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to