Jan 282014
 

Do you hate it too? When you are going through some DHCP logfiles/leases you see those:

[18:53][martin@cerberus:~]$ leasecheck.pl |grep -i .34
10.0.0.34 2014/01/24 11:41:36 2014/01/25 11:41:36 04:46:65:75:4f:65 active android-66627f1e652e4864

For some time now i wanted to change my mobile phone “hostname”. Android uses a couple of different hostnames though. You have /etc/hosts, bluetooth hostname (which you can change with GUI), network hostname, etc. I wanted to alter the network/WiFi hostname. So my device gets a proper DDNS entry which i can remember;). And now the number of Android devices are growing in my household I can better keep up with who-is-who in logfiles/etc.

* You need console or SSH access (so your device needs to be rooted).
* My device is running Jelly Bean 4.2.1

Here is how:

Using username "root".
SSHD Server
root@10.0.0.34's password:
root@android:/storage/sdcard0 # find / -name build.prop
/system/build.prop
root@android:/storage/sdcard0 # su
root@android:/storage/sdcard0 # vi /system/build.prop
# Change in this file the value net.hostname:
net.hostname=android-GT-I9100-MLM
:wq
root@android:/storage/sdcard0 # reboot

getprop net.hostname
You can check to open a console and type:
getprop net.hostname

traceroute looks cool again. ;)

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image