how to match any records with wildcards?

6 views
Skip to first unread message

stony999

unread,
Oct 27, 2010, 6:39:47 PM10/27/10
to ruby-pdns-users
In the examples shown a block always starts with
newrecord("www.your.net") do |query, answer|
s the domain queried is already known.

In my VoIP environment I want to give back the ip of registered phones
which are stored in another table
E.g. a query is 200.my.domain and it should give back the IP of the
registered phone# 200.

Is there a way to e.g. start the block with
newrecord("*") do |query, answer|
and then evaluate query[:qname].

Or where should I start?

R.I.Pienaar

unread,
Oct 27, 2010, 6:44:09 PM10/27/10
to ruby-pdns-users
hello,

not at present, I wanted to add this ability for something I needed
but did not get so far, it'll be quite a significant change.

I want to use it build dns RBLs

Renaud Chaput

unread,
Oct 27, 2010, 6:54:34 PM10/27/10
to ruby-pd...@googlegroups.com
Hi,

I wrote a small patch for regexp support :
http://groups.google.com/group/ruby-pdns-users/browse_thread/thread/35065dd3fe4f02a4.

You can see an example here : http://github.com/renchap/ruby-pdns-reverse

In my TODO list is an improvement to add support for other matches
than regexps, but didnt have time ATM.

Reply all
Reply to author
Forward
0 new messages