[Pdns-users] lua variables

bert hubert bert.hubert at netherlabs.nl
Tue Sep 17 11:26:58 UTC 2013


On Thu, Sep 12, 2013 at 01:39:31PM -0700, chayes wrote:
> I'd like to isolate the domain inside of an lua script.
> I know about the "domain" variable ... but it can contain subdomain like
> "alt1-safebrowsing.google.com."
> Is there a variable that only contains the "google.com" in the above
> example? 
> Or do I have to do the string manipulation to get it?

Yes - there is no clean definition of what is "the domain name".
PowerDNS internally does have a guess, but it does not send this to Lua.

	Bert

> 
> 
> 
> 
> --
> View this message in context: http://powerdns.13854.n7.nabble.com/lua-variables-tp10335.html
> Sent from the PowerDNS mailing list archive at Nabble.com.
> 
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
> 




More information about the Pdns-users mailing list