Powerdns子域和代表团 [英] Powerdns Subdomain & Delegation

查看:73
本文介绍了Powerdns子域和代表团的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PowerDNS权威服务器和pdns-mysql-backend.我正在尝试创建一个子域并将外部NS委派给它.但是我找不到合适的文档或示例.我只需要为子域创建NS记录?

I'm using PowerDNS authoritative server and pdns-mysql-backend. And I 'm trying to create a subdomain and delegate the external NS to it. But I can't find a proper doc or example for it. I just need to create NS records for subdomain?

1. existing domain is "example.com"
2. sub-domain that I want to create is "test.example.com"
3. external NS is "ns1.book.com"

and I have created records to mysql like below.

"domains table"
id |name             |master  |last_check | type  |notified_serial | account
----------------------------------------------------------------------------
1  |example.com      |(NULL)  |(NULL)     |MASTER |               0|(NULL) 
2  |test.example.com |(NULL)  |(NULL)     |MASTER |               0|(NULL)

"records table"
id |domain_id |name             |type  |content  
----------------------------------------------------------------------------
1  |         1|example.com      |SOA   |ns1.example.com hostmaster.example.com 10 900 600 86400 3600 
2  |         1|example.com      |NS    |ns1.example.com
3  |         1|example.com      |NS    |ns2.example.com
4  |         1|ns1.example.com  |A     |10.10.10.10
5  |         1|ns2.example.com  |A     |20.20.20.20
6  |         1|test.example.com |NS    |ns1.book.com 

Is there anything I have to do? 

推荐答案

  1. 在大多数情况下,使用MySQL Backend时,您很可能希望为区域使用"NATIVE"类型
  2. 删除"test.example.com"区域
  3. 记录正确无误

这篇关于Powerdns子域和代表团的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆