IMA_SetDnsServerAddress - Sets the addresses of the primary and alternate DNS servers for the specified PNP
cc [ flag... ] file... -lima [ library... ] #include <ima.h> IMA_STATUS IMA_SetDnsServerAddress( /* in */ IMA_OID oid, /* in */ const IMA_IP_ADDRESS *pPrimaryDnsServerAddress, /* in */ const IMA_IP_ADDRESS *pAlternateDnsServerAddress );
The object ID of the physical network port (PNP) whose DNS servers are to be set.
A pointer to the IP address of the primary DNS server. This parameter is NULL if the primary DNS server address is being cleared. In this case, the alternateDnsServerAddress argument is also NULL
A pointer to the IP address of the alternate DNS server. This parameter is NULL if the alternate DNS server address is being cleared.
The IMA_SetDnsServerAddress() API sets the addresses of the primary and alternate DNS servers for the specified PNP.
Returned if a reboot is necessary before the setting of the DNS servers takes effect.
Returned if setting the primary DNS server address is not supported by the specified PNP.
Returned if setting the alternate DNS server address is not supported by the specified PNP and the alternateDnsServerAddress argument is not NULL.
Returned if the oid argument does not specify a valid object type.
Returned if the oid argument does not specify an PNP.
Returned if the oid argument does not specify an PNP known to the system.
Returned if the primaryDnsServerAddress or alternateDnsServerAddress argument is not NULL, and specifies a memory area from which data cannot be read
Returned if the primaryDnsServerAddress argument is NULL, and the alternateDnsServerAddress argument is not NULL. It is not valid to have an alternate DNS server without having a primary DNS server.
Returned if neither the primaryDnsServerAddress nor the alternateDnsServerAddress argument is NULL, and both specify the same IP address.
See attributes(7) for descriptions of the following attributes:
|