AsterionDocumentation v0.4.1

Domains and DNS

Tables of the area Domains and DNS and their relations
Domains and DNS: tables and foreign keys. Dashed lines lead to tables of other areas.

domains

Zones you monitor and domains discovered from hostnames. Latest SOA, DNSSEC, wildcard, mail policy and mail servers, integrity across satellites, CT polling state, DKIM selectors.

22 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
namevarchar(255)
monitoredtinyint(1)0
auto_discoveredtinyint(1)0
dkim_selectorslongtextyes
soalongtextyes
dnsseclongtextyes
wildcardlongtextyes
mail_policylongtextyes
mail_serverslongtextyes
dns_integritylongtextyes
first_scanlongtextyes
notestextyes
last_checked_attimestampyes
created_attimestampyes
updated_attimestampyes
ct_monitortinyint(1)1
ct_checked_attimestampyes
ct_next_attimestampyes
ct_failuressmallint(5) unsigned0
ct_errorvarchar(500)yes

Indexes: tenant_id, name (unique)

domain_names

Names inside a domain from DNS, PTR, certificates and CT, with the host they point to, wildcard flags and whether a user watches the name.

14 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
domain_idbigint(20) unsigneddomains on delete cascade
host_idbigint(20) unsignedyeshosts on delete set null
namevarchar(255)
wildcardtinyint(1)0
via_wildcardtinyint(1)0
watchedtinyint(1)0
sourceslongtextyes
ipslongtextyes
first_seen_attimestampyes
last_seen_attimestampyes
created_attimestampyes
updated_attimestampyes

Indexes: domain_id, name (unique) · host_id · name · tenant_id

dns_records

Current and removed records of a domain (name, type, value, first/last seen, removed at).

10 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
domain_idbigint(20) unsigneddomains on delete cascade
namevarchar(255)
typevarchar(10)
valuetext
value_hashvarchar(64)
ttlint(10) unsignedyes
first_seen_attimestampyes
last_seen_attimestampyes
removed_attimestampyes

Indexes: domain_id, name, type, value_hash · domain_id, removed_at

dns_nameservers

Authoritative name servers of a domain: addresses, serial, authoritative answer, response time, errors.

12 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
domain_idbigint(20) unsigneddomains on delete cascade
namevarchar(255)
ipslongtextyes
serialbigint(20) unsignedyes
authoritativetinyint(1)yes
rtt_msdoubleyes
transportvarchar(8)yes
errorvarchar(255)yes
last_checked_attimestampyes
created_attimestampyes
updated_attimestampyes

Indexes: domain_id, name (unique)

dns_changes

History of DNS records: added or removed, with the satellite that saw it; mail-related records are flagged.

10 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
tenant_idbigint(20) unsignedtenants on delete cascade
domain_idbigint(20) unsigneddomains on delete cascade
satellite_idbigint(20) unsignedyessatellites on delete set null
namevarchar(255)
typevarchar(10)
changevarchar(10)
valuetext
mail_relatedtinyint(1)0
detected_attimestamp

Indexes: domain_id, detected_at · satellite_id · tenant_id