Skip to content

IPv6 for Dynamic DNS #3919

Open
Open

Description

@javielico

Is your feature request related to a problem? Please describe.
I'd like the possibility to update my current IPv4 and IPv6 automatically with the Dynamic DNS feature.

Describe the solution you'd like
For those who have dual stack at home, I'd like the possibility so the API from DynDNS will pick up IPv6 and IPv4 and update the A and AAAA records simultaneously.

Activity

  1. trnsnt commented on Nov 30, 2020

    @trnsnt
    Contributor

    Hello,

    DynHost (Dynamic DNS feature) is a legacy feature that we want to fully refactor. We take note of your need, and we will add support of ipv6 in DynHost in the refactored version. Unfortunately I do not have any ETA to give you for now.

    Thanks,

    Eric - DNS team

  2. antleblanc commented on Dec 15, 2020

    @antleblanc
    Member

    Thanks for the update @trnsnt!

  3. Tycorc commented on May 26, 2021

    @Tycorc

    Any news regarding the ETA?

  4. Tom94 commented on Dec 27, 2021

    @Tom94

    Hi there, I'm another user who'd love to have ipv6 dynamic dns.

  5. djey47 commented on Apr 23, 2022

    @djey47

    Hello, no update?

  6. anthonygraignic commented on Jun 3, 2022

    @anthonygraignic

    Hi, any update ?
    Would love to fully use IPv6, 24 years after the RFC release :)

    And to get this bar bigger (from https://www.arcep.fr/cartes-et-donnees/nos-publications-chiffrees/transition-ipv6/barometre-annuel-de-la-transition-vers-ipv6-en-france.html)

  7. qupfer commented on Oct 21, 2022

    @qupfer

    That worked for me:

    In normal circumstances, your IPv6 address is your global public address, so you can relay on your "ip -a" (linux) or ipconfig (windows) command to get your IP locally.
    After hacking a few lines in python (or using curl or anything similar), you can use the ovh api:
    https://api.ovh.com/console/#/domain/zone/{zoneName}/record~GET to get ID of your record
    https://api.ovh.com/console/#/domain/zone/{zoneName}/record/{id}~GET to get info if current setting (if needed)
    set new one with: https://api.ovh.com/console/#/domain/zone/{zoneName}/record/{id}~PUT
    and finally refresh the zone: https://api.ovh.com/console/#/domain/zone/{zoneName}/refresh~POST

    I check via cron if the dig-ip (dig +short AAAA vpn.mydomain.de @ns103.ovh.net. | tail -n1) is still active on my interfaces and
    If not, I execute the following thing:
    Its need obviously some optimizations/fixes, but as an starting point, it may help.

    Edit: changed it a bit, to get new ipv4,ipv6 addresses and update it. It need existing A and AAAA records previously.

    #!/usr/bin/env python3
    
    # API DynDNS
    
    
    # create token for GET and PUT (or more) https://www.ovh.com/auth/api/createToken
    # prefilled url: https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*
    
    # get access
    
    # AK number1
    # AS number2
    # CK number3
    
    # pip install ovh
    # pip install requests
    
    #########################################
    
    import ovh
    import json
    
    import requests
    
    application_key="aaaaaaaaaa"
    application_secret="bbbbbbbbbbbbb"
    consumer_key="ccccccccccccc"
    
    zoneName="mydomain.de"
    subDomain="vpn"
    interface="eth0"
    
    newIP4=requests.get("https://api4.ipify.org").content.decode()
    newIP6=requests.get("https://api6.ipify.org").content.decode()
    print(f'{newIP4}\n{newIP6}')
    
    client = ovh.Client(
        endpoint='ovh-eu',               # Endpoint of API OVH Europe (List of available endpoints)
        application_key=application_key,    # Application Key
        application_secret=application_secret, # Application Secret
        consumer_key=consumer_key,       # Consumer Key
    )
    
    
    
    result = client.get(f'/domain/zone/{zoneName}/record', fieldType='A',subDomain=subDomain)
    recordID=result[0]
    client.put(f'/domain/zone/{zoneName}/record/{recordID}',subDomain=subDomain,target=newIP4,ttl=0)
    
    result = client.get(f'/domain/zone/{zoneName}/record', fieldType='AAAA',subDomain=subDomain)
    recordID=result[0]
    client.put(f'/domain/zone/{zoneName}/record/{recordID}',subDomain=subDomain,target=newIP6,ttl=0)
    
    
    client.post(f'/domain/zone/{zoneName}/refresh')
    
    
  8. Norde commented on Oct 22, 2022

    @Norde

    @qupfer So we can update DDNS using an ipv6 but still not update simultaneously ipv4 and v6 ( as ipv6 will replace the v4 entry and vice versa) ?

  9. qupfer commented on Oct 22, 2022

    @qupfer

    @qupfer So we can update DDNS using an ipv6 but still not update simultaneously ipv4 and v6 ( as ipv6 will replace the v4 entry and vice versa) ?

    Edit: I changed the aboove script to update both, ipv4 and ipv6.
    But you nee to create one time a A and an AAAA record manually via web-gui.
    For example an A Record showing to 127.0.0.1 and one AAAA with fd00::1.
    Then create the three API Numbers (AK,AS,CK) and execute the script. Now both entries should show to the correct IP-adresses.
    It does not include an check, if an IP address changed. Maybe I add it later

    old answer:

    Yes and no. My method is not a real DDNS update, Its just change config via API.
    With result = client.get(f'/domain/zone/{zoneName}/record', fieldType='A',subDomain=subDomain)
    you could receive the record ID of the A-Recroderd and change it in the same way (client.put(f'/domain/zone/{zoneName}/record/{recordID}',subDomain=subDomain,target=1.2.3.4,ttl=0) )
    Extend the script, and you could update both.

    However, take the update in two different steps is not the worst idea.
    At my home, I use different containers (similar to VMs) for different jobs. They are reachable through IPv4 and IPv6.
    The problem is: They have all the same IPv4 address (different portforwarding for IPv4 (NAT), but differen IPv6 adresses (no NAT on IPv6)).
    A "single-update-Approach" would breake some connection in my setup, as the AAAA Record would only match one service.
    At the moment, I have an "univeral" ipv4 adress (updateded from the router as an old fashioned dnydns host) and a servie-specific subdomain, updated from the host itself. It realy depends what you want to achieve and what your setup looks like ( a single host, a vm-host, multiplae host....)

  10. HDebeuf commented on Jun 5, 2023

    @HDebeuf

    Any update on this feature request enabling both ipv4 and ipv6 support with DynHost?
    Thank you.

  11. Norde commented on Jun 19, 2023

    @Norde

    Thanks a lot for this update @qupfer!
    (sorry for the late reply: I missed my notifications)

  12. PerspectivesLab commented on Jan 25, 2024

    @PerspectivesLab

    still impossible to do ipv6 dyndns on ovh in 2024 ...

  13. server-home-KaKi87 commented on Feb 16, 2024

    @server-home-KaKi87

    Hello,
    Any news on this ?
    Thanks

  14. trnsnt commented on Feb 16, 2024

    @trnsnt
    Contributor

    Hello,

    IPv6 for DynDns will be supported in the coming weeks :)

    Eric - DNS team

  15. gyptazy commented on Feb 29, 2024

    @gyptazy

    IPv6 for DynDns will be supported in the coming weeks :)

    Glad to hear and almost unbelievable after all the years...

    @trnsnt, is there any eta? I mean, you mentioned the refactor on Nov 30, 2020 (we have Mar, 2024). Just want to know if it makes sense to wait for this or should dig into other solutions.

  16. PerspectivesLab commented on Apr 5, 2024

    @PerspectivesLab

    do you know when this will be released ? its months now @trnsnt
    "Seule une IPv4 peut etre utilisée pour la mise en place d'un DynHost. Les IPv6 sont indisponibles."
    from: https://help.ovhcloud.com/csm/fr-dns-dynhost?id=kb_article_view&sysparm_article=KB0051644

    thx

  17. trnsnt commented on Apr 5, 2024

    @trnsnt
    Contributor

    Hello @PerspectivesLab
    It is ok using apiv6 !
    This will be possible using manager when #11307 will be prodded !

    thx

  18. lippl commented on May 15, 2024

    @lippl

    Hi @trnsnt,
    thanks for the implementation!
    From what I tested so far, it is now possible to set an IPv6 address via manager web-ui and update url. However when setting the AAAA-Record, the A-Records is cleared, hence a dual-stack scenario is not possible.
    The initial request and the reasonable way would be to have an A and AAAA record simulatneously. Hence it would also require two separate input fields in the gui and an additional myipv6 parameter for the request url.
    Could you please look into this again?
    Thanks :)

  19. PerspectivesLab commented on May 15, 2024

    @PerspectivesLab

    Hi @lippl,
    i still cant see the option for ipv6 in the dynhost section of the ovh manager, how did you get there ?
    thx

  20. lippl commented on May 15, 2024

    @lippl

    @PerspectivesLab there is no extra field or label. Just use the same field as for ipv4 before. Merely the input validation is allowing ipv6 format now.

  21. qupfer commented on May 24, 2024

    @qupfer

    i put my "workaround" here: https://git.07q.de/qupfer/ovh_dyndns
    Mostly the same as above and its just an example

  22. DerDreschner commented on Nov 3, 2024

    @DerDreschner

    @trnsnt : I don't want to bother, but do you have any updates for us here? :) Thanks!!

  23. Kwasow commented on Jun 21, 2025

    @Kwasow

    Hey, I've set up DynDNS with an IPv6 address today and it seems to be working. I think this issue can be closed

  24. lippl commented on Jun 21, 2025

    @lippl

    Hey @Kwasow, am I right in assuming, that your DynDnS entry resolves to IPv6 only then? The issue is about being able to set and resolve IPv4 (A) AND IPv6 (AAAA) at the same time.

  25. Kwasow commented on Jun 21, 2025

    @Kwasow

    Oh, my bad then @lippl, I thought this was only about IPv6 not resolving at all. I don't have a public IPv4 address, so I can't help with that, unfortunately.

  26. antoinbo commented on Jul 26, 2025

    @antoinbo

    Hi everyone!

    I already wanted to set an IPv6 address to a DynHost for many years, and finally seen it is now possible! But, I was also stuck to set both IPv4 and IPv6 address to the same DynHost.

    However, I discovered that multiple DynHosts can be created for the same subdomain (Any A or AAAA record with a TTL (Time To Live) of 60 seconds is considered DynHost.), so:

    • dynhost.example.net targeting 0.0.0.0
    • dynhost.example.net targeting ::

    This creates two records in the DNS Zone, respectively A and AAAA.
    Those can then be updated independently using one unique account (e.g., example.net-dynhost).

    Update the A and AAAA records with two requests:

    # curl -u "$LOGIN:$PASSWORD" https://dns.eu.ovhapis.com/nic/update?system=dyndns&hostname=$HOSTNAME&myip=$IP
    curl -u "example.net-dynhost:$PASSWORD" https://dns.eu.ovhapis.com/nic/update?system=dyndns&hostname=dynhost.example.net&myip=127.0.0.1
    curl -u "example.net-dynhost:$PASSWORD" https://dns.eu.ovhapis.com/nic/update?system=dyndns&hostname=dynhost.example.net&myip=::1
    

    Lookup the subdomain returns the two versions of IP addresses 😃

    Non-authoritative answer:
    Name:   dynhost.example.net
    Address: 127.0.0.1
    Name:   dynhost.example.net
    Address: ::1
    

    Nota: Creating more than one A or AAAA record per subdomain using DynHost return No record found error.

  27. poikilotherm commented on Jul 28, 2026

    @poikilotherm

    Thanks @antoinbo this was very helpful! Your suggestions still works in 2026, now using this to update via OpenWRT DDNS scripts at OVH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions