<commit_before>#!/bin/sh
# Test 9 - test for AA-Flag. Repeat this test for each authoritative
# server for the zone. Each server must respond with an AA-Flag
echo " == #9 - AA-Flag == "

dig ns ${1} +short | while read server; do
    echo "Server: ${server} "
    aaflag=$(dig  @${server} ${1} soa +norec | grep ";; flags" | cut -d " " -f 4 | cut -b 1-2)
    if [ "${aaflag}" == "aa" ]
    then
	echo " AA-Flag found, good "
    else
	echo " no AA-Flag, Server not authoritative "
    fi
done<commit_msg>test09.sh: posix compliant shells use =. == is an enhancement used for example in bash. With dash there's no ==. Fixes https://github.com/menandmice-services/dns-monitoring-scripts/issues/14<commit_after>#!/bin/sh
# Test 9 - test for AA-Flag. Repeat this test for each authoritative
# server for the zone. Each server must respond with an AA-Flag
echo " == #9 - AA-Flag == "

dig ns ${1} +short | while read server; do
    echo "Server: ${server} "
    aaflag=$(dig  @${server} ${1} soa +norec | grep ";; flags" | cut -d " " -f 4 | cut -b 1-2)
    if [ "${aaflag}" = "aa" ]
    then
	echo " AA-Flag found, good "
    else
	echo " no AA-Flag, Server not authoritative "
    fi
done
{'fraction_non_alphanumeric': 0.15118243243243243, 'fraction_numerical': 0.015202702702702704, 'mean_word_length': 2.923841059602649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1612279', 'n_tokens_mistral': 427, 'n_tokens_neox': 400, 'n_words': 153}