summaryrefslogtreecommitdiff
path: root/dns.html
blob: 8a44f6d3974751a681f56894fc2202a2cc0553a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html>
    <head>
        <title>Test Page</title>
        <style type="text/css">
            html {
                text-align: center;
            }
            table {
                border: 1px solid #999;
                border-collapse: collapse;
                margin: auto;
            }
            td, th {
                padding: 0.5em;
                border: 1px solid #999;
            }
            th {
                background: #ccc;
            }
            .dns-type {
                text-align: center;
            }
        </style>
    </head>
    <body>
        <h1>DNS Manager</h1>
        <b>Zone:</b> <select>
            <option>crute.me</option>
            <option>crute.us</option>
            <option>crute.org</option>
            <option>faldowski.com</option>
            <option>softgroupcorp.com</option>
            <option>16.172.in-addr.arpa</option>
            <option>31.172.in-addr.arpa</option>
        </select>
        <b>View:</b> <select>
            <option>Internal</option>
            <option>External</option>
        </select>
        <b>Records:</b> <select>
            <option>ANY</option>
            <option>A</option>
            <option>SOA</option>
            <option>CNAME</option>
            <option>AAAA</option>
            <option>MX</option>
            <option>TXT</option>
            <option>PTR</option>
            <option>NS</option>
            <option>SRV</option>
            <option>SPF</option>
        </select>
        <br />
        <b>Search:</b> <input type="text" />
        <input type="submit" value="Search" />
        <br />
        <input type="submit" value="Add Record" />

        <br /><br />
        <table>
            <tr>
                <th>Name</th>
                <th>RR Type</th>
                <th>TTL</th>
                <th>RR Data</th>
                <th>Action</th>
            </tr>
            {{ range $r := . }}
            {{ range $_, $rr := $r.RR }}
            <tr>
                {{ $h := $rr.Header }}
                <td>{{ $h.Name }}</td>
                <td class="dns-type">{{ dnsType $h }}</td>
                <td title="{{ $h.Ttl}}">{{ dnsTTL $h }}</td>
                <td>{{ getValue $rr }}</td>
                <td>
                    <a href="#">Delete</a> |
                    <a href="#">Update</a>
                </td>
            </tr>
            {{ end }}
            {{ end }}
        </table>
    </body>
</html>