Commit 7921b993 authored by Lars Beckers's avatar Lars Beckers

postfix: sort postscreen access entries

parent 976a6f65
......@@ -20,11 +20,11 @@
{% endif %}
{% if 'mx' in net %}
{{ net.mx|comment('plain', prefix='', postfix='') }}
{% for mx in q('dig', net.mx, 'qtype=MX') %}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=A') %}
{% for mx in q('dig', net.mx, 'qtype=MX')|sort %}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=A')|sort %}
{{ addr }} {{ net.action|default('dunno') }}
{% endfor %}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=AAAA') %}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=AAAA')|sort %}
{{ addr }} {{ net.action|default('dunno') }}
{% endfor %}
{% endfor %}
......
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