generating dhcpd config and using it