These are some functions that don’t really have a place in one of the other categories.
getregisteredname
(name) → str¶Returns the shortest domain name based on Mozilla’s Public Suffix List. In general it will tell you the ‘registered domain’ for a given name.
For example getregisteredname('www.powerdns.com')
returns “powerdns.com”
Parameters: | name (str) – The name to check for. |
---|
getRecursorThreadId
() → int¶returns an unsigned integer identifying the thread handling the current request.
pdnsrandom
([upper_bound])¶Get a random number.
Parameters: | upper_bound (int) – The upper bound. You will get a random number below this upper bound. |
---|