after memoization of host_dns (which you might rename hostDnsConfig to match the vsphere API documentation)

    host_dns[prop_sym] = value