Xip.io invert the system for a subdomain (bash script help)

Hey everyone,

I know this is not stackoverflow but I get better help here than on stack.

I was setting up this GitHub - basecamp/xip-pdns: PowerDNS pipe backend adapter powering xip.io which is currently working on polisystems.cloud however I have quite a few issues.

I want to do a system with inverted IP names.
So that the domain
192.1.1.1.polisystems.cloud replies with 192.1.1.1

but that if I use static.1.1.1.192.ip.polisystems.cloud.
It inverts the process so it outputs -> 192.1.1.1.

Note the inversion of the ip when using the subdomain ip.

I think my level is not too bad in bash but sadly, I really can’t read shit with this script (xip-pdns/xip-pdns at master · basecamp/xip-pdns · GitHub)

Could someone give me a hand to add this function?

Thanks for your help guys

Quiet shit but did it XD : Comparing basecamp:master...Poli-Systems:master · basecamp/xip-pdns · GitHub

1 Like