dns-check.html
16 lines1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{if .PointsHere}}
<span class="inline-flex items-center gap-1 text-[10px] text-emerald-600 bg-emerald-50 px-2 py-0.5 rounded-md">
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500"></span>
DNS verified ({{.ResolvedIP}})
</span>
{{else if .Resolves}}
<span class="inline-flex items-center gap-1 text-[10px] text-amber-600 bg-amber-50 px-2 py-0.5 rounded-md">
<span class="w-1.5 h-1.5 rounded-full bg-amber-400"></span>
Points to {{.ResolvedIP}}, not {{.ServerIP}}
</span>
{{else}}
<span class="inline-flex items-center gap-1 text-[10px] text-red-500 bg-red-50 px-2 py-0.5 rounded-md">
<span class="w-1.5 h-1.5 rounded-full bg-red-400"></span>
DNS not found
</span>
{{end}}