@kristiandg wrote:
OK, this is probably more a “Linux” question, but the FPBX distro of Linux is tweaked a bit and I’m not sure where to look for a couple things.
I want the system to get it’s hostname from DHCP. I know this seems like bad practice normally, but when in a cloud environment, I believe the cloud DHCP server is what’s doling out a hostname matching the name you assigned to your VM. If I’m correct in that assumption, I want the OS to honor that and derive it’s hostname from DHCP. Google Compute, their agent seems to handle it, but Azure, the agent doesn’t seem to do it at all, leading me to believe it’s relying solely on DHCP (I’m guessing).
I was able to find the dhcp client setup in the usr/lib/dracut/modules.d/40network/dhclient.conf and it is requesting “host name”, but it doesn’t appear to be doing anything with that value once it has it. I’m assuming that work is done in dhclient-script.sh, and although I see several hostname items, I’m not sure what’s used (scripting isn’t exactly my specialty).
Would someone be able to help me get the hostname updated from DHCP so these boxes aren’t stuck with “localhost.localdomain”, requiring manual editing?
Thanks.
Posts: 1
Participants: 1