dns-ecs-debug.bash: begin by getting IP addresses

This commit is contained in:
Aminda Suomalainen 2023-03-12 18:21:13 +02:00
parent b5fa5f0b82
commit 8d0e562024
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -6,6 +6,12 @@
# $@ takes all parameters so another DNS server can be specified
# e.g. ./dns-ecs-debug.bash @9.9.9.11
# Let's get our own IPs first
echo "Actual IP addresses"
curl -L4s --doh-url https://dns.quad9.net/dns-query https://icanhazip.com/
curl -L6s --doh-url https://dns.quad9.net/dns-query https://icanhazip.com/
echo ""
echo "Google $@"
dig +short TXT o-o.myaddr.l.google.com. "$@"
echo ""