Parse ptr: in SPF

parent 8f092616
......@@ -5,7 +5,7 @@ function txtParser(record: string): string {
* See https://telcodb.net/dns/amazon.com for example.
*/
if(record.includes("v=spf1") || record.includes("spf2.0/pra")) {
record = record.replace(/(include|ip4|ip6|a)\:([^\s]+)/g, '$1:<a href="/search?q=$2">$2</a>');
record = record.replace(/(include|ip4|ip6|a|ptr)\:([^\s]+)/g, '$1:<a href="/search?q=$2">$2</a>');
record = record.replace(/(redirect)\=([^\s]+)/g, '$1=<a href="/search?q=$2">$2</a>');
......
......@@ -9,7 +9,7 @@
<p>We use the following data sources:
<h3>ASN data</h3>
<h3>ASN &amp; announcement data</h3>
<ul>
<li><a href="https://asrank.caida.org/">CAIDA ASRank</a></li>
<li><a href="https://peeringdb.com/">PeeringDB</a></li>
......@@ -36,6 +36,5 @@
<p>Our contact address is
<a href="mailto:contact+2019@telcodb.net">contact@telcodb.net</a>.</p>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment