Dirk's Tech Findings

Busybox: ping yields "name does not resolve"

Publication date: 2019-09-06

Issue: ping yields "name does not resolve"

Under Alpine Linux ping yields "name does not resolve" when called with other parameters.

ping -I 10.0.0.253 10.2.12.4 -s 1300
ping: -s: Name does not resolve

Solution: Change order of command line arguments

Change the order of the command line arguments. The IP to be pinged needs to be at the end.

ping -I 10.0.0.253 -s 1300 10.2.12.4

Background:

By default, Alpine Linux uses a ping command provided by Busybox. This command has a different behavior than the "usual" ping tool provided in the iputils package.

Back to topic list...