[Pdns-users] Questions about supermaster/slave setup
Ton van Rosmalen
ton at netbase.nl
Wed Sep 3 08:42:38 UTC 2008
Hi Samy,
Samuel Vogel schreef:
> Hey guys,
>
> I have a couple of questions regarding the supermaster / superslave
> setup.
> I want to have a hidden supermaster, which updates two superslaves,
> whom then answer the DNS queries.
I must say that I'm missing the questions but I think your problem is
that the supermaster/superslave setup doesn't work.
> I set up this domain on my supermaster (gmysql):
> +----+-----------+--------+------------+--------+-----------------+---------+
>
> | id | name | master | last_check | type | notified_serial |
> account |
> +----+-----------+--------+------------+--------+-----------------+---------+
>
> | 2 | example.com | NULL | NULL | NATIVE | NULL |
> NULL |
> +----+-----------+--------+------------+--------+-----------------+---------+
>
>
>
> +----+-----------+--------------------+------+---------------------------+-------+------+-------------+
>
> | id | domain_id | name | type |
> content | ttl | prio | change_date |
> +----+-----------+--------------------+------+---------------------------+-------+------+-------------+
>
> | 8 | 2 | example.com | SOA | localhost
> dns at example.com 2 | 86400 | NULL | NULL |
The SOA record should list ns1.example.com as the primary instead of
localhost. A correct SOA record could look something like:
ns1.example.com dns.example.com 2008090301 ..... <timing variables>
> | 9 | 2 | example.com | NS | ns1.example.com
> | 86400 | NULL | NULL |
> | 10 | 2 | example.com | NS | ns2.example.com
> | 86400 | NULL | NULL |
> | 11 | 2 | ns1.example.com | A |
> 92.51.133.94 | 300 | NULL | NULL |
> | 12 | 2 | ns2.example.com | A |
> 92.51.145.221 | 300 | NULL | NULL |
> | 13 | 2 | example.com | A |
> 212.227.95.152 | 300 | NULL | NULL |
> | 14 | 2 | preview.example.com | A |
> 92.51.145.3 | 300 | NULL | NULL |
> | 15 | 2 | admin.example.com | A |
> 92.51.145.159 | 300 | NULL | NULL |
> +----+-----------+--------------------+------+---------------------------+-------+------+-------------+
>
>
> And I put the following into the supermaster table on the slave
> (gsqlite3):
> sqlite> select * from supermasters;
> 92.51.145.159|ns1.example.com|
Everything else seems configured just fine.
Hope this helps.
Kind regards,
Ton
More information about the Pdns-users
mailing list