Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TelcoDB
Web Frontend
Commits
b2f2eac1
Verified
Commit
b2f2eac1
authored
Oct 22, 2019
by
Elias Ojala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HSTS Preload DNS list, other minor improvements
parent
a83bb94f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
3 deletions
+57
-3
src/controllers/dns.controller.ts
src/controllers/dns.controller.ts
+5
-0
src/controllers/home.controller.ts
src/controllers/home.controller.ts
+7
-0
src/controllers/net.controller.ts
src/controllers/net.controller.ts
+1
-1
views/dns/show.twig
views/dns/show.twig
+2
-0
views/docs/dns-hstspreload.twig
views/docs/dns-hstspreload.twig
+34
-0
views/docs/index.twig
views/docs/index.twig
+6
-0
views/net/show.twig
views/net/show.twig
+2
-2
No files found.
src/controllers/dns.controller.ts
View file @
b2f2eac1
...
...
@@ -24,6 +24,11 @@ router.get("/:domain", (req: Request, res: Response, next: NextFunction) => {
])
.
then
(
x
=>
x
[
0
])
.
then
(
ipInfo
=>
{
// Nullify IP info if undefined
if
(
ipInfo
[
0
]
==
undefined
)
{
ipInfo
=
null
;
}
res
.
render
(
"
dns/show.twig
"
,
{
"
title
"
:
`
${
req
.
params
.
domain
}
- DNS data`
,
"
disable_title_prefix
"
:
true
,
...
...
src/controllers/home.controller.ts
View file @
b2f2eac1
...
...
@@ -29,4 +29,11 @@ router.get("/docs/", (req: Request, res: Response, next: NextFunction) => {
});
});
router
.
get
(
"
/docs/dns-hsts-preloading/
"
,
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
)
=>
{
res
.
render
(
"
docs/dns-hstspreload.twig
"
,
{
"
canonical_url
"
:
"
/docs/dns-hsts-preloading/
"
,
"
title
"
:
"
DNS list for HSTS preloaded domains
"
,
});
});
export
const
HomeController
:
Router
=
router
;
src/controllers/net.controller.ts
View file @
b2f2eac1
...
...
@@ -50,7 +50,7 @@ router.get("/:zero/:one([0-9][0-9]?[0-9]?)", (req: Request, res: Response, next:
cidrNotation
,
ipVersion
,
addresses
:
addresses
,
//
addresses: addresses,
announcements
,
});
...
...
views/dns/show.twig
View file @
b2f2eac1
...
...
@@ -102,9 +102,11 @@
src="https://screenshots.lelux.fi/api/png?url=http://{{ domain }}" />
</div> #}
{%
endif
%}
{%
if
ipInfo
%}
<div
class=
"tab-pane fade"
id=
"ip-info"
role=
"tabpanel"
aria-labelledby=
"ip-info-tab"
>
{%
include
"../components/ip-info.twig"
%}
</div>
{%
endif
%}
<div
class=
"tab-pane fade"
id=
"whois"
role=
"tabpanel"
aria-labelledby=
"whois-tab"
>
<pre
class=
"mt-2 mb-0"
><code
id=
"whoisInformation"
></code></pre>
</div>
...
...
views/docs/dns-hstspreload.twig
0 → 100644
View file @
b2f2eac1
{%
extends
'layouts/default.twig'
%}
{%
block
body
%}
<h1>
DNS list for
<a
href=
"https://hstspreload.org/"
>
HSTS preloaded domains
</a></h1>
<p>
This list is technically similar to
<a
href=
"https://en.wikipedia.org/wiki/DNSBL#URI_DNSBLs"
>
URIBLs
</a>
.
</p>
<p><a
href=
"https://gitlab.lelux.fi/TelcoDB/hsts-preload-dns"
>
The source code is available on GitLab
</a>
.
</p>
<h2>
Technical details
</h2>
<p>
The service is available under
<code>
chromium.hstspreload.lelux.fi
</code>
.
</p>
<p>
A query returns
<code>
127.0.0.42
</code>
if the domain is HSTS preloaded.
If it is not preloaded,
<a
href=
"https://tools.ietf.org/html/rfc8020"
>
NXDOMAIN
</a>
is returned.
</p>
<h3>
Example
</h3>
<pre><code>
$ dig +short
<a
href=
"/dns/httpforever.com.chromium.hstspreload.lelux.fi"
class=
"text-dark"
>
httpforever.com.chromium.hstspreload.lelux.fi
</a>
$ dig +short
<a
href=
"/dns/mail.google.com.chromium.hstspreload.lelux.fi"
class=
"text-dark"
>
mail.google.com.chromium.hstspreload.lelux.fi
<a
class=
"text-dark"
href=
"/ip/127.0.0.42"
>
127.0.0.42
</a></code></pre>
<h3>
Guidelines
</h3>
<ul>
<li>
We recommend you to self-host the preloading list, if possible.
</li>
<li>
No warranty of any kind is provided.
</li>
</ul>
<hr>
<p><a
href=
"/docs/"
>
Go back to documentation
</a></p>
{%
endblock
%}
\ No newline at end of file
views/docs/index.twig
View file @
b2f2eac1
...
...
@@ -70,6 +70,12 @@ location: https://peeringdb.com/api/net/291</code></pre>
{# <p>We couldn't understand why it couldn't be implemented <a href="https://peeringdb.com/apidocs/">natively in the PeeringDB API</a>...</p> #}
<h2>
DNS lists
</h2>
<ul>
<li><a
href=
"/docs/dns-hsts-preloading/"
>
DNS list for HSTS preloaded domains
</a></li>
</ul>
<h2>
DNS-over-HTTPS
</h2>
<ul>
...
...
views/net/show.twig
View file @
b2f2eac1
...
...
@@ -12,7 +12,7 @@
<a
class=
"nav-link"
data-toggle=
"tab"
role=
"tab"
id=
"whois-tab"
href=
"#whois"
aria-controls=
"whois"
aria-selected=
"false"
>
Whois
</a>
</li>
{%
if
ipVersion
==
4
%}
{%
if
addresses
and
ipVersion
==
4
%}
<li
class=
"nav-item"
>
<a
class=
"nav-link"
data-toggle=
"tab"
role=
"tab"
id=
"dns-tab"
href=
"#dns"
aria-controls=
"dns"
aria-selected=
"false"
>
DNS
</a>
...
...
@@ -52,7 +52,7 @@
<div
class=
"tab-pane fade"
id=
"whois"
role=
"tabpanel"
aria-labelledby=
"whois-tab"
>
<pre
class=
"mt-2 mb-0"
><code
id=
"whoisInformation"
></code></pre>
</div>
{%
if
ipVersion
==
4
%}
{%
if
addresses
and
ipVersion
==
4
%}
<div
class=
"tab-pane fade"
id=
"dns"
role=
"tabpanel"
aria-labelledby=
"dns-tab"
>
<table
class=
"table w-auto"
>
<thead>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment