[kwlug-disc] Getting external IP

bob+kwlug at softscape.ca bob+kwlug at softscape.ca
Mon Jan 29 11:12:39 EST 2018


> I had to write my own.
> 
> As far as I know, there's no way to get bind9 / named to respond to such
> a query in the desired manner.
> 
> If anyone knows a way, let me know!

Not in bind9, but there seems to be a way to script a back-end in PowerDNS using the pipe backend feature.


> And it was a rather surprisingly difficult task. I expected to watch
> incoming queries for some text like, "my.ip" and simply spit out the
> query source's IP address.
> 
> I was so young, dumb, and naïve way back then, in 2017...
> 
> It's all binary packed bytes, so '\x02my\x02ip\x00' to find "my.ip",
> plus headers of course.

Did you modify named itself with your custom code? What's actually listening on port 53 on your server here?!?

BB






More information about the kwlug-disc mailing list