VMware {code} Community
johndemic
Contributor
Contributor

dnsServerList SOAP Format

Hey All,

Does anyone know the format to specify multiple resolvers in the "dnsServerList" attribute in a CloneVM_Task SOAP request? I'm looking to get multiple "nameserver" lines in the Linux VM's /etc/resolv.conf entry. So far I tried comma and space delimiting, but these only result in the entire string as the value of the nameserver.

Any help is greatly appreciated,

-jd

0 Kudos
1 Reply
njain
Expert
Expert

Hi,

You can try the following format. You need to pass each resolver in a separate "dnsServerList" tag.

..

<globalIPSettings>

<dnsServerList>xxx.xxx.xxx.x</dnsServerList>

<dnsServerList>xxx.xxx.xxx.x</dnsServerList>

..

</globalIPSettings>

..

Hope this helps.

0 Kudos