I am using an ARM target running Open Embedded Linux from Yocto, it has eth0 network interface from a private LAN network.

I am able to ping an IP like but using the name(rackspace.com) I am unable to ping

root@ABC:~# ping
PING ( 56 data bytes 
64 bytes from seq=0 ttl=236 time=10.502 ms
64 bytes from seq=1 ttl=236 time=10.569 ms
64 bytes from seq=2 ttl=236 time=10.431 ms

--- ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 10.431/10.500/10.569 ms
root@ABC:~# ping rackspace.com
ping: bad address 'rackspace.com'

/etc/resolv.conf has the following configuration:


Please let me know what else needs to be checked.

  • 1
    use google ns: nameserver and nameserver – Ipor Sircer Dec 21 '17 at 18:48
  • I am unable to ping, it just hangs and i do see that /etc/resolv.conf gets overwritten with some other values without reboot, may be from dhclient – enthu Dec 21 '17 at 19:09
  • what do nslookup rackspace.com and dig rackspace.com say? – Tomáš Pospíšek Dec 21 '17 at 19:19
  • nslookup: can't resolve 'rackspace.com' but for microsoft.com nslookup returns Name: microsoft.com Address 1: Address 2: Address 3: Address 4: Address 5: but the ping does not work on the ip for microsoft.com – enthu Dec 21 '17 at 19:30
  • 1
    Is your private network hosted by Rackspace? If not, why are you trying to use Rackspace DNS? – roaima Dec 21 '17 at 23:34

On your network interface add the following line in your network interface

iface eth0 inet static
         # Space-separated DNS servers

Edit be /etc/resolv.conf with the DNS of your choice, and then run the following command on the file.

chattr + i /etc/resolv.conf

The above command blocks writing to the file, to unlock execute

chattr -i /etc/resolv.conf
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.