Giter VIP home page Giter VIP logo

Comments (7)

mkopnsrc avatar mkopnsrc commented on August 9, 2024

Update on this issue,

It seems that you can have multiple DNS servers in a single string format with space in between, which it seem to worked for me. However, for the proper formatting of the values, it should be in object format.

image

Proxmox Release = 8.1
Proxmox Version = 8.1.3
Terraform Version = 1.6.6
Terraform Module = bpg/proxmox v0.40.0

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Hi @mkopnsrc! 👋🏼

I think this is already supported, albeit not documented.

PVE does not provide an option to specify a list of DNS servers as separate items neither in UI, nor in APIs:

Screenshot 2023-12-17 at 9 27 38 PM Screenshot 2023-12-17 at 9 04 02 PM

But we can use a space-separated lists of IPs instead (tested with ubuntu cloud image):

 dns {
    domain = "example.com"
    server = "192.168.3.1 192.168.1.1"
  }
Screenshot 2023-12-17 at 9 25 33 PM

Then, on the VM itself:

ubuntu@test:~$ resolvectl status
Global
       Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (eth0)
    Current Scopes: DNS
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.3.1
       DNS Servers: 192.168.3.1 182.168.1.1
        DNS Domain: example.com

from terraform-provider-proxmox.

mkopnsrc avatar mkopnsrc commented on August 9, 2024

I appreciate your quick response, yes you're correct. Would be still possible to support the object based at the module level and when executing on PVE side, it would convert it to string format ?

The object level formatting on code would help admins to spot multiple entries easier and enables for comment for each DNS entries. Ex:

image

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

That would break backward compatibility with existing deployments. We could probably add a new attribute servers there, keeping the old server for compatibility.

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

@all-contributors please add @mkopnsrc for financial

from terraform-provider-proxmox.

allcontributors avatar allcontributors commented on August 9, 2024

@bpg

I've put up a pull request to add @mkopnsrc! 🎉

from terraform-provider-proxmox.

mkopnsrc avatar mkopnsrc commented on August 9, 2024

Thank you @bpg for your support.

from terraform-provider-proxmox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.