dnscontrol icon indicating copy to clipboard operation
dnscontrol copied to clipboard

[WIP] INFOMANIAK provider

Open jbelien opened this issue 7 months ago • 10 comments

[!WARNING] This is a work in progress!

This is a provider for @infomaniak (https://www.infomaniak.com/).

This is my first contribution in Go and in DNSControl ; any feedback is welcome (even while I'm working on it).

Please create the GitHub label 'provider-INFOMANIAK'.

jbelien avatar May 18 '25 20:05 jbelien

I'm currently hitting a bump with the integration tests.

=== RUN   TestDNSProviders
Testing Profile="INFOMANIAK" (TYPE="INFOMANIAK")
=== RUN   TestDNSProviders/glop.be
=== RUN   TestDNSProviders/glop.be/Clean_Slate:Empty
CREATE: [ns12.infomaniak.ch.]
    helpers_integration_test.go:169: 
        - DELETE  NS ns12.infomaniak.ch.glop.be. ttl=3600
    helpers_integration_test.go:174: failed to delete record 25810013 in zone glop.be: Cannot delete object
=== RUN   TestDNSProviders/glop.be/00:A:Create_A
CREATE: [ns12.infomaniak.ch.]
CREATE: [1.1.1.1]
    helpers_integration_test.go:169: 
        - DELETE  NS ns12.infomaniak.ch.glop.be. ttl=3600
    helpers_integration_test.go:174: failed to delete record 25810013 in zone glop.be: Cannot delete object

It seems that I can't delete that NS record. How should I handle that NS record ? Is there a way to handle NS record separately ? Is there a way to "skip" it in the integration tests ? Thanks!

jbelien avatar May 24 '25 12:05 jbelien

It seems that I can't delete that NS record.

Could it be a permission issue? Many providers don't allow you to delete NS records that they install.

How should I handle that NS record ? Is there a way to handle NS record separately ?

For now, try skipping if the type == NS. Let's see if A, CNAME, MX have the same problem. If they have the same problem, it could be permissions or a problem with how the API is being used. If the problem is only with NS records, we might just have to skip them.

Is there a way to "skip" it in the integration tests ?

You can! Try go test -v -verbose -profile INFOMANIAK -start 16 -end 20

More info in: https://docs.dnscontrol.org/developer-info/integration-tests

tlimoncelli avatar May 29 '25 18:05 tlimoncelli

@tlimoncelli Thanks for your reply! That was indeed the direction I was taking! 👍 I'll come back with some updates in the next few days.

jbelien avatar May 29 '25 18:05 jbelien

@jbelien I'm currently also looking for an Infomaniak integration. It looks like your work is already on a great state! Thank you for your work. Count me in as a beta-tester 👌

signalwerk avatar Sep 18 '25 10:09 signalwerk

To be honest I'm kind of stuck and didn't have time to continue lately ...

Any help is welcome and appreciated!

But I didn't give up and still think it needs to be added to dnscontrol ! 😁

jbelien avatar Sep 19 '25 06:09 jbelien