Hi Guys I have been trying to do a Wildcard "A" record for the past couple of days with little success. It seems like the query takes the "*" not as a wildcard, but an actual character, like a normal letter or numeric...
I also have wildcards=yes configured in my config file. Can you perhaps help ? Maybe I'm just missing something stupid... I use PowerDNS 2.9.21 with a MySQL Database I am trying to setup a RBL-type database which would have several wildcard entries. In my current database I have the following configured :- mysql> select * from domains; +----+------------------+--------+------------+--------+-----------------+-- -------+ | id | name | master | last_check | type | notified_serial | account | +----+------------------+--------+------------+--------+-----------------+-- -------+ | 1 | test.xxxxx.xx.xx | NULL | NULL | NATIVE | NULL | NULL | | 2 | duhl.xxxxx.xx.xx | NULL | NULL | NATIVE | NULL | NULL | +----+------------------+--------+------------+--------+-----------------+-- -------+ mysql> select * from records; +----+-----------+-----------------------------+------+--------------------- -+-------+---------------------+------+ | id | domain_id | name | type | content | ttl | dateadded | prio | +----+-----------+-----------------------------+------+--------------------- -+-------+---------------------+------+ | 1 | 1 | 1.0.0.127.test.xxxxx.xx.xx | A | 127.0.0.1 | 84600 | 2008-07-14 15:29:00 | | | 2 | 1 | 1.0.0.127.test.xxxxx.xx.xx | TXT | "Test Zone 1" | NULL | 0000-00-00 00:00:00 | | | 3 | 2 | 2.0.0.127.duhl.xxxxx.xx.xx | A | 127.0.0.2 | NULL | 0000-00-00 00:00:00 | | | 4 | 2 | 2.0.0.127.duhl.xxxxx.xx.xx | TXT | "Dynamic IP Address" | 86400 | 2008-07-15 08:53:00 | | | 5 | 2 | *.0.245.41.duhl.xxxxx.xx.xx | A | 127.0.0.2 | 86400 | 2008-07-15 09:00:00 | | +----+-----------+-----------------------------+------+--------------------- -+-------+---------------------+------+ Now, if I do the following queries, I get the following output :- [EMAIL PROTECTED]:~# dig @localhost 1.0.0.127.test.xxxxx.xx.xx any ; <<>> DiG 9.4.2 <<>> @localhost 1.0.0.127.test.xxxxx.xx.xx any ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15308 ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;1.0.0.127.test.xxxxx.xx.xx. IN ANY ;; ANSWER SECTION: 1.0.0.127.test.xxxxx.xx.xx. 84600 IN A 127.0.0.1 1.0.0.127.test.xxxxx.xx.xx. 0 IN TXT "Test Zone 1" [EMAIL PROTECTED]:~# dig @localhost 66.0.245.41.duhl.xxxxx.xx.xx any ; <<>> DiG 9.4.2 <<>> @localhost 66.0.245.41.duhl.xxxxx.xx.xx any ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37114 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;66.0.245.41.duhl.xxxxx.xx.xx. IN ANY [EMAIL PROTECTED]:~# dig @localhost *.0.245.41.duhl.xxxxx.xx.xx any ; <<>> DiG 9.4.2 <<>> @localhost *.0.245.41.duhl.xxxxx.xx.xx any ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45722 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;*.0.245.41.duhl.xxxxx.xx.xx. IN ANY ;; ANSWER SECTION: *.0.245.41.duhl.xxxxx.xx.xx. 86400 IN A 127.0.0.2 Thanks ! Gabriel __________ Information from ESET Smart Security, version of virus signature database 3289 (20080722) __________ The message was checked by ESET Smart Security. http://www.eset.com _______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users