diff --git a/proxmoxtf/resource/container.go b/proxmoxtf/resource/container.go index f3819a56..eb01b394 100644 --- a/proxmoxtf/resource/container.go +++ b/proxmoxtf/resource/container.go @@ -398,7 +398,7 @@ func Container() *schema.Resource { Type: schema.TypeList, Description: "The list of DNS servers", Optional: true, - Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPv4Address}, + Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPAddress}, MinItems: 0, }, }, diff --git a/proxmoxtf/resource/vm.go b/proxmoxtf/resource/vm.go index 03226cf2..c57cbda4 100644 --- a/proxmoxtf/resource/vm.go +++ b/proxmoxtf/resource/vm.go @@ -897,7 +897,7 @@ func VM() *schema.Resource { Type: schema.TypeList, Description: "The list of DNS servers", Optional: true, - Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPv4Address}, + Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPAddress}, MinItems: 0, }, },