mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
add reverse ip checks during quickstart and in "check dns" admin page/subcommand
- and don't have a global variable "d" in the big checkDomain function in http/admin.go. - and set loglevel from command-line flag again after loading the config file, for all subcommands except "serve".
This commit is contained in:
@ -722,6 +722,15 @@ const domainDNSCheck = async (d) => {
|
||||
]
|
||||
}
|
||||
|
||||
const detailsIPRev = !checks.IPRev.IPNames || !Object.entries(checks.IPRev.IPNames).length ? [] : [
|
||||
dom.div('Hostname: ' + domainString(checks.IPRev.Hostname)),
|
||||
dom.table(
|
||||
dom.tr(dom.th('IP'), dom.th('Addresses')),
|
||||
Object.entries(checks.IPRev.IPNames).sort().map(t =>
|
||||
dom.tr(dom.td(t[0]), dom.td(t[1])),
|
||||
)
|
||||
),
|
||||
]
|
||||
const detailsMX = empty(checks.MX.Records) ? [] : [
|
||||
dom.table(
|
||||
dom.tr(dom.th('Preference'), dom.th('Host'), dom.th('IPs')),
|
||||
@ -787,6 +796,7 @@ const domainDNSCheck = async (d) => {
|
||||
'Check DNS',
|
||||
),
|
||||
dom.h1('DNS records and domain configuration check'),
|
||||
resultSection('IPRev', checks.IPRev, detailsIPRev),
|
||||
resultSection('MX', checks.MX, detailsMX),
|
||||
resultSection('TLS', checks.TLS, detailsTLS),
|
||||
resultSection('SPF', checks.SPF, detailsSPF),
|
||||
|
Reference in New Issue
Block a user