Browse Source

conf example

develop
Robin Thoni 9 years ago
commit
62ed67b6bc
4 changed files with 92 additions and 0 deletions
  1. 32
    0
      .gitignore
  2. 22
    0
      conf/dhcp.conf.default
  3. 27
    0
      conf/hosts.json.default
  4. 11
    0
      conf/sql.json.conf

+ 32
- 0
.gitignore View File

@@ -0,0 +1,32 @@
1
+conf/sql.json
2
+conf/dhcp.conf
3
+conf/hosts.json
4
+
5
+# Compiled Object files
6
+*.slo
7
+*.lo
8
+*.o
9
+*.obj
10
+
11
+# Precompiled Headers
12
+*.gch
13
+*.pch
14
+
15
+# Compiled Dynamic libraries
16
+*.so
17
+*.dylib
18
+*.dll
19
+
20
+# Fortran module files
21
+*.mod
22
+
23
+# Compiled Static libraries
24
+*.lai
25
+*.la
26
+*.a
27
+*.lib
28
+
29
+# Executables
30
+*.exe
31
+*.out
32
+*.app

+ 22
- 0
conf/dhcp.conf.default View File

@@ -0,0 +1,22 @@
1
+ddns-update-style none;
2
+
3
+option domain-name "example.com";
4
+option domain-name-servers 192.168.1.2;
5
+
6
+default-lease-time 600;
7
+max-lease-time 7200;
8
+
9
+use-host-decl-names on;
10
+
11
+authoritative;
12
+
13
+log-facility local7;
14
+
15
+subnet 192.168.1.0 netmask 255.255.255.0{
16
+  range 192.168.1.30 192.168.1.250;
17
+  option subnet-mask 255.255.255.0;
18
+  option broadcast-address 192.168.1.255;
19
+  option routers 192.168.1.1;
20
+
21
+  %%HOSTS%%
22
+}

+ 27
- 0
conf/hosts.json.default View File

@@ -0,0 +1,27 @@
1
+[
2
+{
3
+  "action": "defaults",
4
+  "domain": "example.com",
5
+  "reverse_domain": "1.168.192.in-addr.arpa",
6
+  "reverse_enabled": true,
7
+  "record_type": "A"
8
+},
9
+{
10
+  "action": "add_domain",
11
+  "domain": "1.168.192.in-addr.arpa"
12
+},
13
+{
14
+  "action": "del_domain",
15
+  "domain": "2.168.192.in-addr.arpa"
16
+},
17
+{
18
+  "action": "add_host",
19
+  "host": "my-host",
20
+  "record_value": "192.168.1.2",
21
+  "dhcp_mac": "aa:bb:cc:dd:ee:ff"
22
+},
23
+{
24
+  "action"; "del_host",
25
+  "host": "my-host"
26
+}
27
+]

+ 11
- 0
conf/sql.json.conf View File

@@ -0,0 +1,11 @@
1
+{
2
+  "master-server":    "ns.example.com",
3
+  "master-user":      "master-user",
4
+  "master-password":  "master-password",
5
+  "master-database":  "powerdns",
6
+
7
+  "slave-server":     "127.0.0.1",
8
+  "slave-user":       "slave-user",
9
+  "slave-password":   "slave-password",
10
+  "slave-database":   "powerdns"
11
+}

Loading…
Cancel
Save