Set-PveNodesDns
Write DNS settings.
API: PUT /nodes/{node}/dns, Proxmox VE API viewer
Syntax
Section titled “Syntax”Set-PveNodesDns [-PveTicket <PveTicket>] [-Dns1 <string>] [-Dns2 <string>] [-Dns3 <string>] -Node <string> -Search <string> [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-Dns1 |
string |
No | First name server IP address. |
-Dns2 |
string |
No | Second name server IP address. |
-Dns3 |
string |
No | Third name server IP address. |
-Node |
string |
Yes | The cluster node name. |
-Search |
string |
Yes | Search domain for host-name lookup. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.