Friday, January 27, 2017

networking - How to ping a local network host by hostname?


I recently wiped my phone and now I am unable to ping a machine by the hostname. Pinging by IP works.


I have a machine, let's say it is called NAS. From my Router and PC, ping NAS finds the machine. However, from my Android Phone, ping NAS returns ping: unknown host NAS.


I am rooted, so I went to /etc/hosts and added 192.168.1.### NAS and it was able to resolve NAS to an IP but what is the solution for making it ping all machines by hostname.


In my Wifi settings on the phone, DNS shows 3 entries: 8.8.8.8, 8.8.4.4, 192.168.1.1.




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...