Skip to content

Commit

Permalink
Add ECS tests with send-client-subnet example configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Aug 28, 2023
1 parent c494ada commit 802c4e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ services:
build:
context: .
dockerfile: Dockerfile
volumes:
# enable send-client-subnet example configuration file
- rootfs_overlay/etc/unbound/custom.conf.d/send-client-subnet.conf.example:/etc/unbound/custom.conf.d/send-client-subnet.conf:ro
command: -v -v

sut:
Expand Down Expand Up @@ -50,3 +53,8 @@ services:
! dig @server -p 53 fail02.dnssec.works +dnssec +multi | tee /dev/stderr | grep NOERROR
! dig @server -p 53 fail03.dnssec.works +dnssec +multi | tee /dev/stderr | grep NOERROR
! dig @server -p 53 fail04.dnssec.works +dnssec +multi | tee /dev/stderr | grep NOERROR
# 9.9.9.11 is the public DNS resolver from Quad9 that explicitly does pass ECS information
dig @server -p 53 TXT o-o.myaddr.l.google.com +short @9.9.9.11 | tee /dev/stderr | grep edns0-client-subnet
# 9.9.9.9 is the public DNS resolver from Quad9 that explicitly does NOT pass ECS information
! dig @server -p 53 TXT o-o.myaddr.l.google.com +short @9.9.9.9 | tee /dev/stderr | grep edns0-client-subnet

0 comments on commit 802c4e9

Please sign in to comment.