Hacker News new | ask | show | jobs
by relix 5187 days ago
The Lua-code doesn't appear to be executed once for each lookup - as I first imagined how it would work. So sadly, one cannot point different region users to the closest server IP.
1 comments

Hello,

I'm Vitalie Cherpec, the founder of the Luadns project. :)

@relix It's a design choice, Lua code is used only to generate records. Executing user code on each lookup it's just too dangerous.

We wanted fast lookups and security. User code is executed in a restricted Lua environment in background.

If we'll have enough requests we'll add special functions to handle geo-aware DNS load balancing.

Do wildcard records work?
Yes, we have support for wildcard records. Example:

https://github.com/luadns/zones/blob/master/example.net.lua