mietzen / porkbun-ddns

porkbun-ddns is an unoffical DDNS-Client for Porkbun Domains.
MIT License
134 stars 10 forks source link

Falsely setting AAAA record to all-zero when ipv6 is not supported #21

Closed saschanaz closed 1 year ago

saschanaz commented 1 year ago

I had to manually pass IPV4_ONLY=TRUE, but maybe the script should skip ipv6 in that case.

mietzen commented 1 year ago

What do you mean by not supported? Please provide logs.

saschanaz commented 1 year ago

Sure:

> porkbun-ddns -v config.json (mydomain) -f "192.168.178.1"
Update existing entry, with:
{"name": "(mydomain)", "type": "A", "content": "(mynewip)"}
Deleting A-Record for (mydomain) with content: (myoldip), Status: SUCCESS
Creating A-Record for (mydomain) with content: (mynewip), Status: SUCCESS
Update existing entry, with:
{"name": "(mydomain)", "type": "AAAA", "content": "0000:0000:0000:0000:0000:0000:0000:0000"}
Deleting AAAA-Record for (mydomain) with content: (myoldipv6), Status: SUCCESS
Creating AAAA-Record for (mydomain) with content: 0000:0000:0000:0000:0000:0000:0000:0000, Status: SUCCESS

With config.json having api keys. You should be able to simulate this by turning off ipv6 on your fritzbox.

Edit: FRITZ!OS 7.57, on Box 7530

mietzen commented 1 year ago

I'm questioning if it is at all useful to set the Fritzbox IPv6 Address unless you some how setup a NAT6 on your Fritzbox.