]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: DNS: Add prefix.location.ipfire.org
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Apr 2024 10:24:16 +0000 (10:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Apr 2024 10:24:16 +0000 (10:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/location/how-to-use/dns.html

index 66f34cd79a93ec09dd446856ee2734840ce51796..f8951d6fc3da885a27bc268c68f8ce97eaf8ef21 100644 (file)
@@ -100,6 +100,28 @@ $ dig +short TXT 38.27.3.81.origin.location.ipfire.org
                </div>
        </section>
 
+       <section class="section">
+               <div class="container">
+                       <h4 class="title is-4">
+                               {{ _("Query Prefixes") }} - <code>prefix.location.ipfire.org</code>
+                       </h4>
+
+                       <div class="content">
+                               <p>
+                                       You can query an IP address for the subnet it belongs to.
+                                       This won't always match the announced route in the global
+                                       routing table.
+                               </p>
+                       </div>
+
+                       <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
+"2001:678:b28::/48"
+
+$ dig +short TXT 8.8.8.8.prefix.location.ipfire.org
+"8.8.8.0/24"</code></pre>
+               </div>
+       </section>
+
        <section class="section">
                <div class="container">
                        <h4 class="title is-4">