diff --git a/e3t_example.yml b/e3t_example.yml new file mode 100644 index 0000000..2d3f087 --- /dev/null +++ b/e3t_example.yml @@ -0,0 +1,11 @@ +zone: + root: 'xe' + records: + # Personal devices + - type: 'A' + in: ['core-twr', 'twr.core'] + out: '10.17.2.1' + + - type: 'A' + in: ['terra-t61p0', 't61p0.terra'] + out: \ No newline at end of file diff --git a/rule.go b/rule.go new file mode 100644 index 0000000..ac65c31 --- /dev/null +++ b/rule.go @@ -0,0 +1,12 @@ +package pancheri + +const ( + RuleTypeA = "A" + RuleTypeAAAA = "AAAA" + RuleTypeCNAME = "CNAME" + RuleTypeMX = "MX" + RuleTypeTXT = "TXT" +) + +type Rule interface { +} diff --git a/zone_example.yml b/zone_example.yml new file mode 100644 index 0000000..cb42e79 --- /dev/null +++ b/zone_example.yml @@ -0,0 +1,24 @@ +zone: + root: 'xe' + records: + - type: 'A' + domains: ['some_a'] + ipv4: '1.2.3.4' + + - type: 'AAAA' + domains: ['some_aaaa'] + ipv6: 'bd1f:f314:5398:0e3d:b3e0:f427:73ef:60fb' + + - type: 'CNAME' + domains: ['some_cname'] + content: 'some_a' + + - type: 'MX' + domains: ['some_mail_domain'] + mailserver: 'mail.e3t.cc' + priority: 10 + + - type: 'TXT' + domains: ['some_txt'] + content: | + WHY HELLO THERE MY FELLOW E3TEAMERS \ No newline at end of file