Host name assigned by DHCP incorrectly
I have a dhcp server setup to hand out ips and such bases on MAC addresses. I also for most machines have a hostname option specified. I also have my /etc/hosts file setup so I only have to change ips in one file. Within the hosts file there are two aliases, a longer complicated alias used for technical purposes and a shorter more user friendly alias. The file looks something like this:
18.104.22.168 tek3739283 bingo
When my clients request DHCP they receive the correct IP address but receive the incorrect host name. My clients are receiving the tek... name instead of the bingo, which is listed in the /etc/hosts file and the dhcpd.conf file, "option hostname bingo". I finally switched the order of the two names in the /etc/hosts file and the clients began receiving the correct name. Any ideas on why this is happening and how to make it stop? Thanks for your help in advance.