Already working:
- Debian box
- DHCP with
send host-name me.company.com
indhclient.conf
- DNS updates automatically with an entry for
me.company.com
What I want to add:
- Send a second host-name, so both are automatically registered with DNS
In other words: I want a DHCP client to register with DNS twice using different names, preferably without having to maintain DNS records manually.
Is this even possible with DHCP?
Why not have two IP addresses on a single client interface and send in two DHCP-with-hostname requests, use a reservation if you want to be consistent. Obviously it's a waste of an IP but it should work just fine.
Unfortunately the DHCP protocol does not allow this. The hostname is set via the Host Name Option - see RFC 2132 Section 3.14:
Sadly you can only have one entry per request, so Chopper3's solution is probably the only way.
Why not just create a CNAME pointing to me.company.com? I don't think this is possible with dhclient.