DNS

2018-03-28  本文已影响0人  Lonely_Acmen

https://en.wikipedia.org/wiki/Comparison_of_DNS_server_software

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');

上一篇下一篇

猜你喜欢

热点阅读