Sending hostname during DHCP

Hi everyone,

I’m trying to get the beaglebone to send its hostname to the DNS server when it receives an IP address via DHCP. This is apparently automatic in many distros:
http://www.held.org.il/blog/2011/01/make-dhcp-auto-update-dynamic-dns/

Ideally I’ll be able to use this hostname when trying to connect to a headless board over the network.

I found out that the Angstrom distro uses connman and tried to look for some kind of configuration that would control this but I came up empty. I’ve asked the connman dist list but I’m asking here as well in case anyone else got it working.

The obvious is ‘use avahi’, however that doesn’t seem to work across all of my machines. Although avahi seems to update my windows 7 box fine (.local resolves to the beaglebone), I have windows xp machines and some linux servers that don’t seem to be able to see the beaglebone.

Note that I can send pings to the beaglebones IP just fine, it’s just the hostname resolution that I can’t get working.

ifconfig on beaglebone shows IP address of 10.101.1.126 (internal work network). Subnet mask is 255.255.252.0, win7 machine on same subnet but my windows xp and linux servers are on different subnets (but all within the mask). I think this is why avahi isn’t updating those.

nslookup has no entires for my beaglebones , or .local. I made sure that the nameserver on my win machine is the same as the beaglebone.

Any ideas? I don’t really want to load ubuntu but I may have to just to get the dhclient service to get this working.

Thanks,
-Devin

Hello Devin,

Did you ever get further with this? I’m also struggling to get my Raspberry’s hostname registered on the dns. It is using connman, but it doesn’t seem to send the hostname right now. Which I thought would be a standard dhcp trick.

Regards,

Bert

Hello Devin,

Did you ever get further with this? I'm also struggling to get my
Raspberry's hostname registered on the dns. It is using connman, but it
doesn't seem to send the hostname right now. Which I thought would be a
standard dhcp trick.

Umm, the Raspberry pi forum is located here: Raspberry Pi Forums - Index page

Wow, that's an old one to dig up, 1 year, 9 months, 4 days...

The software package you are looking for is called "avahi-daemon"

Regards,

heh !

You missed about 5-6 other rPI posts Robert :stuck_out_tongue:

Yeah, i've been slacking off instead of being on troll duty over the weekends..

Does anybody discovered how to instruct connman to update the host entry?
I have a functional ddns server that receives updates from win clients, network-manager and wicd enabled clients, but not from connman.
Do I have to instruct avahi-daemon to do so or can I configure connman to do that task?