I recently began having issues with my Arch box not allowing connections based on hostname. Not sure whats going on I can SSH into the box, view the webserver, ftp, etc assuming I am using the IP address. If I use the hostname, nothing works.I can nslookup from a Windows machine and see the IP is resolved..
I have a problem that I'm dealing with from a long time... I'm creating an Android app that will get info of devices that are in the same subnet as an Android device.
For example I give it ip address 192.168.0.3 and it shows that its hostname is xxxx and MAC Address xx:xx:xx... .
I tried to change my hostname according to this guide for Debian based system:
I edited /etc/hostname file
run /etc/init.d/hostname start
Though there are errors. Always when I write a sudo command it tells me it can't recognize hostname. After I restarted the system, graphical environment wasn't working, startx command wasn't successful.