]>
Commit | Line | Data |
---|---|---|
521592f2 MT |
1 | {% extends "../../base.html" %} |
2 | ||
3 | {% block title %}{{ _("How To Use?") }} - {{ _("DNS") }}{% end block %} | |
4 | ||
5 | {% block container %} | |
6 | <section class="hero is-light"> | |
7 | <div class="hero-body"> | |
8 | <div class="container"> | |
9 | <nav class="breadcrumb" aria-label="breadcrumbs"> | |
10 | <ul> | |
11 | <li> | |
12 | <a href="/"> | |
13 | {{ _("Home") }} | |
14 | </a> | |
15 | </li> | |
16 | <li> | |
17 | <a href="/location"> | |
18 | {{ _("Location") }} | |
19 | </a> | |
20 | </li> | |
21 | <li> | |
22 | <a href="/location/how-to-use"> | |
23 | {{ _("How To Use?") }} | |
24 | </a> | |
25 | </li> | |
26 | <li class="is-active"> | |
27 | <a href="#" aria-current="page">{{ _("DNS") }}</a> | |
28 | </li> | |
29 | </ul> | |
30 | </nav> | |
31 | ||
32 | <h1 class="title">{{ _("DNS") }}</h1> | |
33 | </div> | |
34 | </div> | |
35 | </section> | |
36 | ||
37 | <section class="section"> | |
38 | <div class="container"> | |
39 | <div class="block"> | |
40 | <p class="is-size-5"> | |
41 | If you cannot use the IPFire Location database on your hosts, | |
42 | we offer a DNS service to query parts of the data just by | |
43 | sending a DNS query allowing to integrate this database into | |
44 | more applications. | |
45 | </p> | |
46 | </div> | |
47 | ||
48 | <div class="block"> | |
49 | <p class="is-size-5"> | |
50 | Queries function on the principle of reverse lookups and are | |
51 | fast and globally cacheable. | |
9e431191 | 52 | DNSSEC allows to trust the data just like a local database. |
521592f2 MT |
53 | </p> |
54 | </div> | |
55 | ||
56 | <div class="notification"> | |
57 | This is a new, experimental feature. The API, behaviour and format of the | |
58 | responses might be subject to change. | |
59 | </div> | |
60 | </div> | |
61 | </section> | |
62 | ||
63 | <section class="section"> | |
64 | <div class="container"> | |
65 | <h4 class="title is-4"> | |
66 | {{ _("Query Country Codes") }} - <code>cc.location.ipfire.org</code> | |
67 | </h4> | |
68 | ||
69 | <div class="content"> | |
70 | <p> | |
71 | You can query the country code of an IP address. | |
72 | </p> | |
73 | </div> | |
74 | ||
75 | <pre><code>$ dig +short TXT 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.2.b.0.8.7.6.0.1.0.0.2.cc.location.ipfire.org | |
76 | "DE" | |
77 | ||
78 | $ dig +short TXT 38.27.3.81.cc.location.ipfire.org | |
79 | "DE"</code></pre> | |
80 | </div> | |
81 | </section> | |
82 | ||
83 | <section class="section"> | |
84 | <div class="container"> | |
85 | <h4 class="title is-4"> | |
86 | {{ _("Query Origins") }} - <code>origin.location.ipfire.org</code> | |
87 | </h4> | |
88 | ||
89 | <div class="content"> | |
90 | <p> | |
91 | You can query the origin of an IP address which will give you | |
92 | the AS number and name where that IP address originates from. | |
93 | </p> | |
94 | </div> | |
95 | ||
96 | <pre><code>$ dig +short TXT 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.2.b.0.8.7.6.0.1.0.0.2.origin.location.ipfire.org | |
97 | "AS204867 - Lightning Wire Labs GmbH" | |
98 | ||
99 | $ dig +short TXT 38.27.3.81.origin.location.ipfire.org | |
100 | "AS24679 - kyberio GmbH"</code></pre> | |
101 | </div> | |
102 | </section> | |
103 | ||
240ea047 MT |
104 | <section class="section"> |
105 | <div class="container"> | |
106 | <h4 class="title is-4"> | |
107 | {{ _("Query Prefixes") }} - <code>prefix.location.ipfire.org</code> | |
108 | </h4> | |
109 | ||
110 | <div class="content"> | |
111 | <p> | |
112 | You can query an IP address for the subnet it belongs to. | |
113 | This won't always match the announced route in the global | |
114 | routing table. | |
115 | </p> | |
116 | </div> | |
117 | ||
118 | <pre><code>$ dig +short TXT 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.2.b.0.8.7.6.0.1.0.0.2.prefix.location.ipfire.org | |
119 | "2001:678:b28::/48" | |
120 | ||
121 | $ dig +short TXT 8.8.8.8.prefix.location.ipfire.org | |
122 | "8.8.8.0/24"</code></pre> | |
123 | </div> | |
124 | </section> | |
125 | ||
521592f2 MT |
126 | <section class="section"> |
127 | <div class="container"> | |
128 | <h4 class="title is-4"> | |
129 | {{ _("Query AS Names") }} - <code>asn.location.ipfire.org</code> | |
130 | </h4> | |
131 | ||
132 | <div class="content"> | |
133 | <p> | |
134 | Resolve an AS number into a human-readable description. | |
135 | </p> | |
136 | </div> | |
137 | ||
138 | <pre><code>$ dig +short TXT 204867.asn.location.ipfire.org | |
139 | "Lightning Wire Labs GmbH" | |
140 | ||
141 | $ dig +short TXT 3320.asn.location.ipfire.org | |
142 | "Deutsche Telekom AG" | |
143 | ||
144 | $ dig +short TXT 15169.asn.location.ipfire.org | |
145 | "Google LLC"</code></pre> | |
146 | </div> | |
147 | </section> | |
148 | ||
149 | <section class="section"> | |
150 | <div class="container"> | |
151 | <h4 class="title is-4"> | |
152 | {{ _("Query Bogons") }} - <code>bogons.location.ipfire.org</code> | |
153 | </h4> | |
154 | ||
155 | <div class="content"> | |
156 | <p> | |
157 | Check if an IP address is considered being a bogon. | |
158 | ||
159 | That means that if an IP address is not part of the global routing | |
160 | table, we will return <code>127.0.0.2</code>, | |
161 | otherwise we will return <code>NXDOMAIN</code>. | |
162 | </p> | |
163 | </div> | |
164 | ||
165 | <pre><code>$ dig +short A 0.0.0.10.bogons.location.ipfire.org | |
166 | 127.0.0.2</code></pre> | |
167 | </div> | |
168 | </section> | |
169 | {% end block %} |