Get Query Sender IP Address

Apr 11, 2012 at 8:21 AM

Hi guys, I am trying to make a load balancer trough a DNS Server, and I was looking in the source code of ARSoft if it is possible to get the IP Address from the client so I can resolve with an IP address more convenient to that client.

Do you know if it is possible to obtain the client IP Address?, and if it is possible, how can I add it to a property on DNSMessage?

Coordinator
Apr 11, 2012 at 9:26 AM

Just look to the delegate of the DnsServer class, you will get the ip of the client on each request.

Apr 14, 2012 at 8:35 PM

my bad, thanks Alex