I really have no good ideas on how to do this.
The simplist solution I think woudl be to have a tool like:
 dhcp-advertize-hostname --interface=eth0 --hostname=foo

and just invoke it.  That tool would just do a dhcp request with the
hostname set. I'm just not familiar enough with how dhcp works to say if
we can actually do that or not.  It seems at very least that we'd risk
invalidating the lease.

This code would only be run on azure, so that would minimize the issue.

bouncing the interface like walinuxagent does is really less than ideal.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1202758

Title:
  hostname not resolvable on azure

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1202758/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to