[Pdns-users] Fallback wildcard

Chad Morland cmorland at gmail.com
Tue Sep 13 15:27:58 UTC 2011


I got this working with the following entries. Thanks for your help.

+---------+-----------+-------+------+----------------------------------------------------------+------+------+---------------------+
| id      | domain_id | name  | type | content
                         | ttl  | prio | change_date         |
+---------+-----------+-------+------+----------------------------------------------------------+------+------+---------------------+
| 1764767 |    146621 | com   | A    | 192.168.1.1
                        |  300 |    0 | 2011-09-13 09:41:00 |
| 1764769 |    146621 | com   | NS   | ns1.nsdomain.com
                    | 3600 |    0 | 2011-09-13 09:41:00 |
| 1764770 |    146621 | com   | NS   | ns2.nsdomain.com
                    | 3600 |    0 | 2011-09-13 09:41:00 |
| 1764772 |    146621 | com   | SOA  | ns1.nsdomain.com
admin at nsdomain.com 2011091301 | 3600 |    0 | 2011-09-13 09:41:00 |
| 1764773 |    146621 | *.com | A    | 192.168.1.1
                        |  300 |    0 | 2011-09-13 09:41:00 |
+---------+-----------+-------+------+----------------------------------------------------------+------+------+---------------------+

-CM

On Tue, Sep 13, 2011 at 4:11 AM, Klaus Darilion
<klaus.mailinglists at pernau.at> wrote:
>
> Correcting myself: it seems taht the entry in the "domains" table is not
> necessary. But you have to add a fake zone to records table by adding a
> SOA record for "com".
>
> regards
> Klaus
>
> Am 13.09.2011 08:35, schrieb Klaus Darilion:
> > 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
> > _______________________________________________
> > Pdns-users mailing list
> > Pdns-users at mailman.powerdns.com
> > http://mailman.powerdns.com/mailman/listinfo/pdns-users
> _______________________________________________
> 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