[Pdns-users] Fallback wildcard

Klaus Darilion klaus.mailinglists at pernau.at
Tue Sep 13 06:35:52 UTC 2011


IIRC (you can verify it by enabling the mysql query log and looking at
the DB-queries done by PowerDNS) PowerDNS requires also that there is a
"zone" for the wildcard domain. Thus, make sure to have an entry for
"com" in the "domains" table.

Regards
Klaus

Am 12.09.2011 18:18, schrieb Chad Morland:
> I am trying to configure my PDNS server to answer any queries that come
> into my server. Basically I want to respond with a specific IP address
> if the domain is not found in the database. I've enabled wildcards in my
> config but it still doesn't seem to work. When I perform a lookup on a
> domain that I know is not in the DB is still get a SERVFAIL response.
> I am using CentOS 5.4 with these packages:
> pdns-backend-mysql-2.9.22-3.el5
> pdns-2.9.22-3.el5
> 
> My config currently looks like this:
> setuid=pdns
> setgid=pdns
> launch=gmysql
> gmysql-host=localhost
> gmysql-user=pdns_user
> gmysql-password=XXXXXX
> gmysql-dbname=power_dns
> disable-axfr=yes
> wildcards=yes
> 
> I have this in the records table:
> 
> mysql> select * from records where name ='*.com';
> +---------+-----------+-------+------+--------------+------+------+---------------------+
> | id      | domain_id | name  | type | content      | ttl  | prio |
> change_date         |
> +---------+-----------+-------+------+--------------+------+------+---------------------+
> | 1540729 |    138961 | *.com | A    | 208.87.34.15 |  300 |    0 |
> 2011-07-04 16:09:28 |
> +---------+-----------+-------+------+--------------+------+------+---------------------+
> 
> Also, is it possible to just have a '*' record so I don't need to have a
> record for each TLD?
> 
> 
> 
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users



More information about the Pdns-users mailing list