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 ...

Results 1 to 5 of 5

Thread: New Custom Script Request -- hostname

  1. Junior Droid
    daevans315's Avatar
    Member #
    21178
    Join Date
    Dec 2009
    Location
    IL
    Posts
    18
    Phone
    Motorola Droid
    #1

    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.
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Moderator
    MrSmith317's Avatar
    Member #
    51450
    Join Date
    Mar 2010
    Location
    Philadelphia
    Posts
    1,135
    Liked
    77 times
    Phone
    HTC Rezound
    Premium Member
    #2
    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?
  4. Junior Droid
    daevans315's Avatar
    Member #
    21178
    Join Date
    Dec 2009
    Location
    IL
    Posts
    18
    Phone
    Motorola Droid
    #3
    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.
  5. Moderator
    MrSmith317's Avatar
    Member #
    51450
    Join Date
    Mar 2010
    Location
    Philadelphia
    Posts
    1,135
    Liked
    77 times
    Phone
    HTC Rezound
    Premium Member
    #4
    Ok, I'll play around with this more on my side and see if I can come up with something.
  6. Moderator
    MrSmith317's Avatar
    Member #
    51450
    Join Date
    Mar 2010
    Location
    Philadelphia
    Posts
    1,135
    Liked
    77 times
    Phone
    HTC Rezound
    Premium Member
    #5
    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?

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. help or request for custom launcher drawer
    By 561427 in forum Droid Themes
    Replies: 18
    Last Post: 05-14-2010, 01:47 PM
  2. free50mb script question?
    By solorca in forum Bugless
    Replies: 2
    Last Post: 04-08-2010, 12:11 AM
  3. Custom Live Paper Request: Lagoon
    By psychre in forum Droid Themes
    Replies: 3
    Last Post: 04-03-2010, 09:47 AM
  4. custom app drawer request
    By Bshaggy6 in forum Droid Themes
    Replies: 3
    Last Post: 04-02-2010, 11:03 AM
  5. 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.