pub-dns/test/integration/test_helper/dns-functions.bash

22 lines
396 B
Bash

#!/usr/bin/env bash
_check_soa_record() {
dig -t SOA ${domain} +noall +answer +multi
}
_check_soa_record_at_ns1() {
dig -t SOA ${domain} +noall +answer +multi @204.8.15.80
}
_check_soa_record_at_ns2() {
dig -t SOA ${domain} +noall +answer +multi @204.8.15.81
}
_check_a_record() {
dig -t A ${domain} +noall +answer
}
_check_cname_record() {
dig -t CNAME ${domain} +noall +answer
}