1. Packages
  2. Packages
  3. Proxmox Virtual Environment (Proxmox VE)
  4. API Docs
  5. getDnsLegacy
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski

    Retrieves the DNS configuration for a specific node.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
    
    const firstNode = proxmoxve.getDnsLegacy({
        nodeName: "first-node",
    });
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    first_node = proxmoxve.get_dns_legacy(node_name="first-node")
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := proxmoxve.GetDnsLegacy(ctx, &proxmoxve.LookupDnsLegacyArgs{
    			NodeName: "first-node",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var firstNode = ProxmoxVE.Index.GetDnsLegacy.Invoke(new()
        {
            NodeName = "first-node",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.ProxmoxveFunctions;
    import com.pulumi.proxmoxve.inputs.GetDnsLegacyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var firstNode = ProxmoxveFunctions.getDnsLegacy(GetDnsLegacyArgs.builder()
                .nodeName("first-node")
                .build());
    
        }
    }
    
    variables:
      firstNode:
        fn::invoke:
          function: proxmoxve:getDnsLegacy
          arguments:
            nodeName: first-node
    
    Example coming soon!
    

    Using getDnsLegacy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDnsLegacy(args: GetDnsLegacyArgs, opts?: InvokeOptions): Promise<GetDnsLegacyResult>
    function getDnsLegacyOutput(args: GetDnsLegacyOutputArgs, opts?: InvokeOptions): Output<GetDnsLegacyResult>
    def get_dns_legacy(node_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDnsLegacyResult
    def get_dns_legacy_output(node_name: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDnsLegacyResult]
    func LookupDnsLegacy(ctx *Context, args *LookupDnsLegacyArgs, opts ...InvokeOption) (*LookupDnsLegacyResult, error)
    func LookupDnsLegacyOutput(ctx *Context, args *LookupDnsLegacyOutputArgs, opts ...InvokeOption) LookupDnsLegacyResultOutput

    > Note: This function is named LookupDnsLegacy in the Go SDK.

    public static class GetDnsLegacy 
    {
        public static Task<GetDnsLegacyResult> InvokeAsync(GetDnsLegacyArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsLegacyResult> Invoke(GetDnsLegacyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsLegacyResult> getDnsLegacy(GetDnsLegacyArgs args, InvokeOptions options)
    public static Output<GetDnsLegacyResult> getDnsLegacy(GetDnsLegacyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:index/getDnsLegacy:getDnsLegacy
      arguments:
        # arguments dictionary
    data "proxmoxve_getdnslegacy" "name" {
        # arguments
    }

    The following arguments are supported:

    NodeName string
    A node name.
    NodeName string
    A node name.
    node_name string
    A node name.
    nodeName String
    A node name.
    nodeName string
    A node name.
    node_name str
    A node name.
    nodeName String
    A node name.

    getDnsLegacy Result

    The following output properties are available:

    Domain string
    The DNS search domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    NodeName string
    Servers List<string>
    The DNS servers.
    Domain string
    The DNS search domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    NodeName string
    Servers []string
    The DNS servers.
    domain string
    The DNS search domain.
    id string
    The provider-assigned unique ID for this managed resource.
    node_name string
    servers list(string)
    The DNS servers.
    domain String
    The DNS search domain.
    id String
    The provider-assigned unique ID for this managed resource.
    nodeName String
    servers List<String>
    The DNS servers.
    domain string
    The DNS search domain.
    id string
    The provider-assigned unique ID for this managed resource.
    nodeName string
    servers string[]
    The DNS servers.
    domain str
    The DNS search domain.
    id str
    The provider-assigned unique ID for this managed resource.
    node_name str
    servers Sequence[str]
    The DNS servers.
    domain String
    The DNS search domain.
    id String
    The provider-assigned unique ID for this managed resource.
    nodeName String
    servers List<String>
    The DNS servers.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
    published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.