Seen from release notes of BIND 9.10, dig tool included in BIND 9.10 supports EDNS client subnet.
Before BIND 9.10, we need to apply a patch to use EDNS client subnet with dig.
README
- "dig +subnet" sends an EDNS CLIENT-SUBNET option when
querying.
|
build BIND 9.10 on Ubuntu 14.04.
# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
# apt-get install build-essential libssl-dev
# tar xzvf bind-9.10.0-P1.tar.gz
# cd bind-9.10.0-P1
# ./configure
# make
# make install
# /usr/local/bin/dig -v
DiG 9.10.0-P1
# /usr/local/bin/dig -h | grep subnet
+subnet=addr (Set edns-client-subnet option)
|
Google public DNS support EDNS client subnet, send DNS queries to Google Public DNS.
You can send EDNS client subnet queries with +subnet option.
# /usr/local/bin/dig @8.8.8.8 +subnet=1.0.16.0 www.google.com +short
173.194.38.18
173.194.38.16
173.194.38.19
173.194.38.20
173.194.38.17
# /usr/local/bin/dig @8.8.8.8 +subnet=3.0.0.0 www.google.com +short
74.125.226.210
74.125.226.211
74.125.226.208
74.125.226.212
74.125.226.209
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.