check / check (push) Successful in 1m34s
`internal/ptr` asks Google, Cloudflare, AdGuard and Quad9 in turn, 2 seconds in all per address. It keeps answers in memory and writes them through to `cache.db`, opened by the new `internal/cachedb`. A reserved address is not sent to the resolvers. Judgement calls: - Each resolver gets an equal share of the time left, so a hung resolver does not use up the 2 seconds. - The negative TTL is the smaller of the SOA minimum and the SOA's own TTL (RFC 2308). - Names that are not host names are dropped, as `net.Resolver.LookupAddr` does. Model: opus-5-5
9 lines
307 B
SQL
9 lines
307 B
SQL
-- hostnames holds the PTR names of addresses. names has the names separated by
|
|
-- spaces, and is empty for an address with no PTR names. expires_at is in
|
|
-- seconds since 1970.
|
|
CREATE TABLE IF NOT EXISTS hostnames (
|
|
address TEXT PRIMARY KEY,
|
|
names TEXT NOT NULL,
|
|
expires_at INTEGER NOT NULL
|
|
);
|