New Custom Script Request -- hostname
This is a discussion on New Custom Script Request -- hostname within the Blackdroid forums, part of the Custom Roms category; How about a custom script to update 'hostname'. I use dynamic DNS on several of the wireless networks I'm on and it would be nice ...
-
New Custom Script Request -- hostname
How about a custom script to update 'hostname'. I use dynamic DNS on several of the wireless networks I'm on and it would be nice to have a easy way to update the hostname the droid so it correctly passes a name to DHCP and then gets registered in DNS as a name I can use to get back to the droid.
EDIT: Looks like this file is the key.
/proc/sys/kernel/hostname
I can edit it and it appears to change the name handed to my DHCP server.
Last edited by daevans315; 04-13-2010 at 05:43 PM.
-
-
you should be able to edit /system/etc/dhcpcd/dhcpcd.conf and add a line like this:
interface tiwlan0
ddns-hostname mydroid_wifi
option subnet_mask, routers, domain_name_servers
The line ddns-hostname specifies the dns hostname that will be passed to the DNS server. I'm not sure if it works on Droid but it works in Linux..so why not?
-
I finally got some time to play with this, I don't think the driver understands the option.
Adding it as shown and the wifi doesn't work at all. It doesn't even scan to find the available hotspots. If you put a ; at the end of the new line, you get the list of hotspots but it fails every time on getting the DHCP address. I never see it send a DHCP packet to my DHCP server. Its not a rights issue on the .conf file as I just put a # in front of the line and it works fine.
Rooted on Day 1 of ownership.
Currently running UD 9.8.
-
Ok, I'll play around with this more on my side and see if I can come up with something.
-
Ok, half a step closer. It looks like dhcpcd can be called with a -H option to set the hostname. Anyone know where dhcpcd is called from?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By 561427 in forum Droid Themes
Replies: 18
Last Post: 05-14-2010, 01:47 PM
-
By solorca in forum Bugless
Replies: 2
Last Post: 04-08-2010, 12:11 AM
-
By psychre in forum Droid Themes
Replies: 3
Last Post: 04-03-2010, 09:47 AM
-
By Bshaggy6 in forum Droid Themes
Replies: 3
Last Post: 04-02-2010, 11:03 AM
-
By jrummy16 in forum LithiumMod
Replies: 48
Last Post: 03-27-2010, 10:22 PM
Search tags for this page
android 2.2 change hostname
,
android change hostname
,
android dhcpcd.conf
,
android dhcpcd.conf example hostname
,
android dhcpcd.conf hostname
,
android dns script
,
android hostname
,
android hostname change
,
change android hostname
,
change atrix hostname
,
droid 4 change host name
,
droid charge custon scripts
,
motorola droid bionic change hostname
,
setting hostname on my droid x2
,
xoom change hostname
Click on a term to search our site for related topics.