https://en.wikipedia.org/wiki/Comparison_of_DNS_server_software
- PowerDNS: https://github.com/PowerDNS/pdns
- BIND: https://github.com/bundy-dns/bundy
dohko环境使用BIND DNS
domain name: svc.service
host name: svc name
正向解析:
insert into bind.dns_records (zone, host, type, data, ttl) VALUES ('svc.service', 'order-service', 'A', '172.18.75.32', '600');
insert into bind.dns_records (zone, host, type, data, ttl) VALUES ('svc.service', '@', 'NS', 'ns', '600');
insert into bind.dns_records (zone, host, type, data, ttl) VALUES ('svc.service', 'ns', 'A', '127.0.0.1', '600');
insert into bind.dns_records (zone, host, type, data, ttl) VALUES ('svc.service', 'mail', 'CNAME', 'www', '600');
insert into bind.dns_records (zone, host, type, data, ttl, resp_person, primary_ns) VALUES ('svc.service', '@', 'SOA', 'ns.svc.service.', '600', 'svc.service', 'ns.svc.service.');
反向解析:
insert into bind.dns_records (zone, host, type, data, ttl, resp_person, primary_ns) VALUES ('75.18.172.in-adr.arpa', '@', 'SOA', 'ns.svc.service.', '600', 'svc.service', 'ns.svc.service.');
insert into bind.dns_records (zone, host, type, data, ttl) VALUES ('75.18.172.in-adr.arpa', '32', 'PTR', 'order-service.svc.service.', '600');
网友评论