Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVmCfg_GetDnsServers Function
PHT_VM_CONFIGURATION

Obtains the list of of globally defined DNS servers which is assigned to a Virtuozzo Container.

Syntax
PRL_RESULT PrlVmCfg_GetDnsServers(
    PRL_HANDLE hVmCfg, 
    PRL_HANDLE_PTR phDnsServersList
);
File

PrlApiVm.h

Parameters

hVmCfg
A handle of type PHT_VM_CONFIGURATION identifying the virtual machine configuration.
phDnsServersList
[out] A pointer to the PHT_STRINGS_LIST handle that receives the list of DNS servers.

Returns

PRL_RESULT. Possible values are: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_OUT_OF_MEMORY - not enough memory to allocate strings list object. 

PRL_ERR_SUCCESS - function completed successfully. 

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.