Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

how to set the hostname on android

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/7/2015 17:13:16      1#
Which hostname do you want to change?
Please attach a screenshot.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/11/2015 11:07:02      2#
In /init.rc, there's the hostname setting:
on boot              
# basic network init      
    ifup lo
    hostname localhost
    domainname localdomain                       

But I doubt that you want to modify that file.

You can also use busybox to set hostname:
   busybox hostname  myname

Also, there's /system/etc/hosts, which has the list the ip and hostname.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list