[Pdns-users] Questions about supermaster/slave setup

Samuel Vogel samydelux at gmail.com
Tue Sep 2 20:29:23 UTC 2008


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 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 |
|  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|

The IP of the supermaster is: 92.51.145.159
And the IP of the slave is: 92.51.133.94

$ dig -t axfr @92.51.145.159 example.com

An manual axfr request works as well:

; <<>> DiG 9.4.2-P1 <<>> -t axfr @92.51.145.159 example.com
; (1 server found)
;; global options:  printcmd
example.com.        86400    IN    SOA    localhost. dns.example.com. 2 
10800 3600 604800 3600
example.com.        86400    IN    NS    ns1.example.com.
example.com.        86400    IN    NS    ns2.example.com.
ns1.example.com.        300    IN    A    92.51.133.94
ns2.example.com.        300    IN    A    92.51.145.221
example.com.        300    IN    A    212.227.95.152
preview.example.com.    300    IN    A    92.51.145.3
admin.example.com.    300    IN    A    92.51.145.159
example.com.        86400    IN    SOA    localhost. dns.example.com. 2 
10800 3600 604800 3600

I know I am missing something somewhere, but I don't know what. Can 
someone here please give me a hint?

Regards,
Samy


More information about the Pdns-users mailing list