Google Domains IPV6 DDNS

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
trigrhappy
Posts: 30
Joined: Sat Aug 31, 2019 6:38 am

Google Domains IPV6 DDNS

Post by trigrhappy »

Every time I update my ddns for my google domain, it only updates the IPV4 address. Since I'm behind a CGNAT, that doesn't do anything for me. How do I update Google Domains DDNS with my ipv6 address instead?

Currently, I'm using a curl command to do it thusly:

curl https://USERNAME:PASSWORD@domains.googl ... domain.com

So how can I have it register with my IPV6 address only?
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Google Domains IPV6 DDNS

Post by Joulinar »

Hi,

something you would need to check with Google. According API docs, you would need to specify myip value on the update url
The IP address to which the host is set. If not supplied, we use the IP of the agent that sent the request.
Important: If your agent uses an IPv6 address, myip is required. You can check your agent’s IP address at: https://domains.google.com/checkip.
https://support.google.com/domains/answ ... dns-record

I did some research for you and found following script https://gist.github.com/cyrusboadway/5a ... f33c237996
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
trigrhappy
Posts: 30
Joined: Sat Aug 31, 2019 6:38 am

Re: Google Domains IPV6 DDNS

Post by trigrhappy »

I found that as well and still couldn't get it working.

It's been about 2 hours now.... and I just realized my ipv6 was down for my network due to something else i was working on earlier.

:facepalm:
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Google Domains IPV6 DDNS

Post by Joulinar »

did you specified myip with your current IPv6 address?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply