You can use any one of the following methods to change the hostname and/or ip-address on RedHat related distributions. If you want to change only the hostname you can either do it from command line, or from GUI as explained below. To change the ip-address along with the hostname, follow the steps shown below. I.
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... .