Troubleshooting
EDNS-CS
Support for Extension mechanisms for Domain Name Server - Client Subnet (EDNS-CS) was introduced to the Enterprise appliances from version 8.11. The principal method of troubleshooting issues with client subnet evaluation is to first log the entries that are being observed by PDNS to ensure that EDNS-CS information is correctly being sent to the GSLB for evaluation against the topology file.
Enabling PDNS logging
Open the
/etc/pdns/pdns.conffile in your preferred editor.Add the following lines to the end of the
pdns.conffile and save it.loglevel=7 log-dns-queries=yes log-dns-details=yesRestart the PDNS service
service pdns restart
Once PDNS logging is set to the appropriate level and the service has been restarted, the dns queries are being logged to /var/log/messages. So, you can tail that file to see the DNS queries that are coming in. When we are talking about troubleshooting issues with Extended DNS Client Subnet (EDNS-CS)
In this case, the information that we are most concerned with is the Remote IP, the GSLB uses this to match against the topologies configured in the load balancer. If there is an issue with the Remote IP that is being offered up to the GSLB that can cause issues with "TWRR" working the way that we need it to.
The first request is showing us the following
What this is telling us is that the actual request that came in to the GSLB is sourced from 10.0.51.14 but the Client Subnet field has been set with the originating client subnet configured as 192.168.65.0/24. As the client subnet field is set, that is what the GSLB will use to evaluate against the topology configuration. The client subnet field can be set if the DNS request originates from a completely different than the IP address that has forwarded the address to the GSLB, in this case it is because I manually set the field on the lookup, like so
The second request doesn't have the extra information of the Client Subnet field
With this lookup the remote IP will be evaluated against the remote IP as the Client Subnet field is not set. This request came in after issuing this command on the client
The dns server was manually set as my dns server is not set up to point at the GSLB for this domain so a manual override was used.
With the information from the PDNS logging you will be able to ascertain whether the DNS requests are coming from the correct location. You will also be able to see if the Client Subnet field has been populated. With these points of information in hand you should be able to understand whether the issue is in the topology configuration, the DNS infrastructure, or some other part of the platform.