William Lam has a good write up regarding kickstart scripts, check the following links VMware Kickstart | virtuallyGhetto
Keep in mind that you have to reserve the IP addresses on your dhcp servers for each esxi host.
You are trying for the host to get the IP from DHCP to get the kickstart file, but then you want the host to switch to using static IP? What would be wrong with using DHCP on the hosts themselves? With reservations this shouldn't be a problem and would be the most efficient way.
Please mark helpful if this provided any help