commit:     e24e331fa3536e751fe90e1158b60c9ad6c4f939
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 26 05:23:48 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 26 05:23:48 2020 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=e24e331f

catalyst-auto: Ensure 'options edns0' is in /etc/resolv.conf

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 tools/catalyst-auto | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index 509917c7..ce155d6d 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -243,6 +243,11 @@ verify_dnssec() {
                echo "DNSSEC does not appear to be working. Bailing out"
                exit 1
        fi
+
+       if ! grep -q '^options \<edns0\>' /etc/resolv.conf; then
+               echo "DNSSEC is not enabled in /etc/resolv.conf"
+               exit 1
+       fi
 }
 
 run_catalyst_commands() {

Reply via email to