You can set the DNS configuration with ESXCLI or with vicfg-dns.