mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
Merge e18f697ac1da04a5465715f0fe72215a766edab7 into fdab24bf6acc62d3011f9b5abdf834b4886642b2
This commit is contained in:
commit
04cff0b47e
@ -590,6 +590,11 @@ int dns_query_new(
|
||||
if (question_utf8 || question_idna)
|
||||
return -EINVAL;
|
||||
|
||||
DnsQuestion *filtered_question_bypass = NULL;
|
||||
r = manager_validate_and_mangle_question(m, &question_bypass->question, &filtered_question_bypass);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
} else {
|
||||
bool good = false;
|
||||
|
||||
|
@ -1121,6 +1121,32 @@ testcase_14_refuse_record_types() {
|
||||
run dig localhost -t A
|
||||
grep -qF "status: NOERROR" "$RUN_OUT"
|
||||
|
||||
# Test DNS Proxy
|
||||
run dig @127.0.0.54 localhost -t AAAA
|
||||
grep -qF "status: REFUSED" "$RUN_OUT"
|
||||
|
||||
run dig @127.0.0.54 localhost -t SRV
|
||||
grep -qF "status: REFUSED" "$RUN_OUT"
|
||||
|
||||
run dig @127.0.0.54 localhost -t TXT
|
||||
grep -qF "status: REFUSED" "$RUN_OUT"
|
||||
|
||||
run dig @127.0.0.54 localhost -t A
|
||||
grep -qF "status: NOERROR" "$RUN_OUT"
|
||||
|
||||
# Test DNSSEC
|
||||
run dig localhost -t AAAA +dnssec +answer
|
||||
grep -qF "status: REFUSED" "$RUN_OUT"
|
||||
|
||||
run dig localhost -t SRV +dnssec +answer
|
||||
grep -qF "status: REFUSED" "$RUN_OUT"
|
||||
|
||||
run dig localhost -t TXT +dnssec +answer
|
||||
grep -qF "status: REFUSED" "$RUN_OUT"
|
||||
|
||||
run dig localhost -t A +dnssec +answer
|
||||
grep -qF "status: NOERROR" "$RUN_OUT"
|
||||
|
||||
run resolvectl query localhost5
|
||||
grep -qF "127.128.0.5" "$RUN_OUT"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user