From: Panagiotis Atmatzidis Date: 2013-05-23T05:08:15+09:00 Subject: Re: [ANN] RubyDNS - asynchronous DNS client and server for Ruby. --Apple-Mail=_AF48A352-8752-438F-BAED-221213C32856 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, On 22 =CE=9C=CE=B1=CF=8A 2013, at 12:02 , botp = wrote: > On Wed, May 22, 2013 at 1:45 PM, Samuel Williams = wrote: > Hi, you can use geo-ip for finding the location, geographically = speaking. There is an example of how to do this: = https://github.com/ioquatix/rubydns/blob/master/test/examples/geoip-dns.rb= #L40-L41 You'll need to follow the instructions L40-41 to get a geo-ip = database. Does that answer your question? >=20 > sorry Samuel, i confused you again. > when i say IP, i just meant the ip address of the client querying my = dns server.=20 >=20 > for now, i just want to get two things from the requesting client: > 1 the ip of the client > 2 the query object (and its attributes) issued by the client I'm a bit offtopic really but, I think the 'correct' way to do this = would be to monitor the DNS requests issued either by RubyDNS or any = other DNS server/client at port UDP:53 with a firewall (pf, iptables, = ipfw, etc) or tcpdump grab the values that are of interest from their = logs and then run a ruby (or pythong, or whatever) script that collects = the info you want. Best Regards, Panagiotis (atmosx) Atmatzidis email: atma@convalesco.org URL: http://www.convalesco.org GnuPG ID: 0x1A7BFEC5 gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5 -- The wise man said: "Never argue with an idiot. They bring you down to = their level and beat you with experience." --Apple-Mail=_AF48A352-8752-438F-BAED-221213C32856 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 botpena@gmail.com> = wrote:
On Wed, May 22, 2013 at 1:45 PM, Samuel = Williams <space.ship.traveller@gmail.com> = wrote:
Hi, you can use geo-ip for finding the location, = geographically speaking. There is an example of how to do this: https://github.com/ioquatix/rubydns/blob/master/test/exa= mples/geoip-dns.rb#L40-L41 You'll need to follow the instructions = L40-41 to get a geo-ip database. Does that answer your question?

sorry Samuel, i confused you = again.
when i say IP, i just meant the ip address of the = client querying my dns server. 

for = now, i just want to get two things from the requesting client:
1 the ip of the client
2 the query object (and its = attributes) issued by the = client

I'm a bit offtopic really = but, I think the 'correct' way to do this would be to monitor the DNS = requests issued either by RubyDNS or any other DNS server/client at = port UDP:53 with a firewall (pf, iptables, ipfw, etc) or tcpdump grab = the values that are of interest from their logs and then run a ruby (or = pythong, or whatever) script that collects the info you = want.

Best Regards,

atma@convalesco.org
URL: = http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg = --keyserver pgp.mit.edu --recv-keys 1A7BFEC5
--
The wise man = said: "Never argue with an idiot. They bring you down to their = level and beat you with experience."

= --Apple-Mail=_AF48A352-8752-438F-BAED-221213C32856--