[Pdns-dev] SOA auto calculation for LDAP backend

Norbert Sendetzky norbert at linuxnetworks.de
Sun Nov 12 20:54:40 CET 2006


On Sunday 12 November 2006 20:33, bert hubert wrote:
> > Maybe it's acceptable to use local timezone and live with the +/- 12h
> > difference to UTC. I think SOA autocalculation tolerates this if the pdns
> > server are not distributed over different time zones with one source. Or
> > do you have a better solution in mind?
>
> There must be better ways to get a UTC timestamp than to change the global
> TZ variable. See man gmtime perhaps.

gmtime converts a time_t value to a struct tm which isn't what we need. timegm 
does what you mean but it's a GNU extension - and maybe also sets the 
environment variable, calls mktime and resets TZ internally. I don't like to 
do the same for each entry.

Other options?


Norbert
-- 
OpenPGP public key
http://www.linuxnetworks.de/norbert.pubkey.asc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20061112/e2d62a31/attachment.bin


More information about the Pdns-dev mailing list