DNS

作者: Lonely_Acmen | 来源:发表于2018-03-28 19:37 被阅读0次

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

    相关文章

      网友评论

          本文标题:DNS

          本文链接:https://www.haomeiwen.com/subject/fnvucftx.html