bodsch.knot

Ansible角色:knot

该角色将会完全配置和安装knot


此Ansible角色的进一步开发已转移至集合bodsch.dns因此,本仓库将不再积极维护。


GitHub工作流状态 GitHub问题 GitHub最新发布 Ansible质量评分

要求与依赖

不明

操作系统

测试于

  • ArchLinux
  • 基于Debian的系统
    • Debian 10 / 11
    • Ubuntu 20.04

配置

默认配置

knot_user: knot
knot_group: knot

knot_config: {}

knot_zones: {}

knot配置

knot_config:
  server:
    listen:
      - '127.0.0.1@5353'

  log:
    syslog:
      any: debug

  database:
    storage: "{{ knot_database }}"

  template:
    default:
      storage: "{{ knot_database }}"
      file: "%s.zone"

  zone:
    molecule.local: {}

knot区域

knot_zones:
  state: present
  molecule.local:
    ttl: 3600
    soa:
      primary_dns: 'dns.molecule.local'
      hostmaster: 'hostmaster.molecule.local'
      refresh: 6h
      retry: 1h
      expire: 1w
      minimum: 1d
    name_servers:
      dns.molecule.local:
        ip: '{{ ansible_default_ipv4.address }}'
    records:
      router.molecule.local:
        type: 'A'
        ip: '{{ ansible_default_ipv4.address }}'

      ldap.molecule.local:
        type: 'CNAME'
        target: 'router.molecule.local'

knotc命令行工具

knotc conf-begin
knotc conf-set zone.domain molecule.local
knotc conf-commit

knotc zone-begin molecule.local
knotc zone-set molecule.local @ 7200 SOA dns hostmaster 1 86400 900 691200 3600
knotc zone-set molecule.local dns 3600 A 172.17.0.2
knotc zone-set molecule.local router 3600 A 172.17.0.2
knotc zone-set molecule.local www 3600 A 172.17.0.5
knotc zone-set molecule.local ldap 3600 CNAME router
knotc zone-set molecule.local _https._tcp 3600 SRV "10 20 433 www"
knotc zone-commit molecule.local

更多内容请见knot操作文档

作者和许可证

  • Bodo Schulz

许可证

Apache

自由软件,太棒了!

关于项目

installs, configures knot

安装
ansible-galaxy install bodsch.knot
许可证
apache-2.0
下载
363
拥有者
ex-developer (c, c++, php), ex-system administrator / engineer, keep-it-simple, monitoring, automation, system architect