@noor

Hi,
Yes it was removed because it contained no value and pdns cleaned them up because updates from your zone would not work otherwhise.

So after an entry removed in cleaning up, do I've create an entry ?

I am using a mobile device/network for ddns updating.

at times, it gives blank to update. Working on it.

@selea

@noor

Yes, you have to recreate the record.

If the record is empty - the DNS Master is unable to send the new updated records to the slaves and that renders your zone unusable when you are updating other records because they are not propagated.
What mobile client do you use?

this is script running on cron job every 5 mins.

ddnsv4=$(ifconfig rmnet0 | grep -m 1 "inet" | awk -F' ' '{print $2}' | cut -c 6-)

curl "https://freedns.linux.pizza/api/v1/remote/updatepw?record=****&password=****&content=$ddnsv4"

ddnsv6=$(ip -6 addr | grep inet6 | awk -F '[ \t]+|/' '{print $3}' | grep -v ^::1 | grep -v ^fe80 | awk 'NR==2')

curl "https://freedns.linux.pizza/api/v1/remote/updatepw?record=****&password=****&content=$ddnsv6"


___________________

I've issue with my network. My network assigned IPv4 address is always different one from other Website or API detecting.

So I've depend on retrieving IPv4 from device itself.



@selea
Follow

@noor

Clever solution :)

If you want to receive ipv4, you can use ipv4.is/ instead, it is hosted by a friend of mine

No buddy,

it is not possible. I was facing this issue quite some years.

The problem is that numerous mobile operators in India hides mobile device public IP address with a common public IP address.

So the actual IPv4 is never detected accurately by any web services.

here is http://ipv4.is/ what showing me, 157.50.230.31
but my actual device IP
10.114.***.***

I tried number Online services including. freedns.org, http://ip4.me/

Lucky, IPv6 is working and detecting properly for me here.

So I am much depend on IPv6.

@selea

@noor

Well, your device is behind a NAT so you are getting a class A network, it is quite common

Well, I guess it is not "NAT".

I do use mobile devices with mobile data & wifi router.

My laptop uses mobile broadband which puts me behind NAT.

One solution is IPv6 works charmly and IPv4 is not. I tried setting up NAT entries but ports are detected but showing as filtered.

The reason, I assure is that my mobile devices is not behind NAT is that, these devices are assigned IPv6 & IPv4 individually.

I use the script to detect IPv4 & 6 to send to DDNS API.

for my laptop, I am using with IPv6 .

@selea
Sign in to participate in the conversation
LinuxPizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - welcome