Add bind configurations and helper scripts #1

Merged
wanderer merged 2 commits from kreyren/bind-configs:master into master 2020-11-01 09:52:47 +01:00
Collaborator

Configures the name daemon bind to run authoritative server with option for recursive server configuratble in named.conf as recursive.

Helper functions submitted in bin/binder files

Signed-off-by: Jacob Hrbek kreyren@rixotstudio.cz

<img src="https://0x0.st/idsS.png" width=100%> Configures the name daemon bind to run authoritative server with option for recursive server configuratble in named.conf as `recursive`. Helper functions submitted in bin/binder files Signed-off-by: Jacob Hrbek <kreyren@rixotstudio.cz>
kreyren added 1 commit 2020-10-30 23:11:35 +01:00
Configures the name daemon bind to run authoritative server with option for recursive server configuratble in named.conf as `recursive`.

Helper functions submitted in bin/binder files

Signed-off-by: Jacob Hrbek <kreyren@rixotstudio.cz>
Author
Collaborator
CC @wanderer
kreyren added spent time 2020-10-30 23:14:38 +01:00
14min
wanderer reviewed 2020-10-30 23:29:49 +01:00
@ -0,0 +27,4 @@
"/etc/bind/zonefiles/${domain##*.}/${domain%%.*}/$zonefile" || {
case "$LANG" in
# NOTE-TRANSLATE(Krey): Translated via youtube(https://www.youtube.com/watch?v=ZIdrH9p8wek), might need spellcheck
sk-*) die 1 "ČOBOLO! AHO! AHO!" ;;
Owner

this is most definitely incorrect :D

this is most definitely incorrect :D
Author
Collaborator

Can you fix it then? i ain't too good in slovak~

Can you fix it then? i ain't too good in slovak~
Owner

for now I think we should remove translations

for now I think we should remove translations
Author
Collaborator

I would remove just the sk line so that it's contributable for 3rd party more easily

I would remove just the sk line so that it's contributable for 3rd party more easily
Owner

please do that, alright.

please do that, alright.
wanderer marked this conversation as resolved
wanderer self-assigned this 2020-10-31 00:21:25 +01:00
wanderer reviewed 2020-10-31 20:55:30 +01:00
@ -0,0 +32,4 @@
# NOTE(Krey): Open port 53 reserved for name deamon
listen-on port 53 { any; };
# NOTE(Krey): Close IPv6 ports as current dotya.ml doesn't have IPv6
Owner

this is not correct, we've got a /64 subnet available

➜  dig AAAA dotya.ml

; <<>> DiG 9.11.23-RedHat-9.11.23-1.fc33 <<>> AAAA dotya.ml
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8087
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;dotya.ml.			IN	AAAA

;; ANSWER SECTION:
dotya.ml.		14364	IN	AAAA	2a02:c207:2030:396::1

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Sat Oct 31 20:54:23 CET 2020
;; MSG SIZE  rcvd: 65
this is not correct, we've got a /64 subnet available ```bash ➜ dig AAAA dotya.ml ; <<>> DiG 9.11.23-RedHat-9.11.23-1.fc33 <<>> AAAA dotya.ml ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8087 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;dotya.ml. IN AAAA ;; ANSWER SECTION: dotya.ml. 14364 IN AAAA 2a02:c207:2030:396::1 ;; Query time: 0 msec ;; SERVER: ::1#53(::1) ;; WHEN: Sat Oct 31 20:54:23 CET 2020 ;; MSG SIZE rcvd: 65 ```
Author
Collaborator

Lets first make it work on IPv4 then we can followup with IPv6

Lets first make it work on IPv4 then we can followup with IPv6
wanderer marked this conversation as resolved
wanderer changed title from Kreyrenized: Hopefully configured as requested to WIP: add bind configurations and helper scripts 2020-10-31 21:12:57 +01:00
wanderer requested changes 2020-10-31 21:33:07 +01:00
wanderer left a comment
Owner

please add ipv6 address and remove the fancy-schmancy translation for now.

please add ipv6 address and remove the fancy-schmancy translation for now.
@ -0,0 +99,4 @@
};
allow-transfer {
// Current Server IP
144.91.70.62;
Owner

following up on my previous comment, ipv6 should also be specified here.

following up on my previous comment, ipv6 should also be specified here.
Author
Collaborator
See https://git.dotya.ml/dotya.ml/bind-configs/pulls/1#issuecomment-646
wanderer marked this conversation as resolved
kreyren added 1 commit 2020-10-31 23:30:45 +01:00
Signed-off-by: Jacob Hrbek <kreyren@rixotstudio.cz>
kreyren changed title from WIP: add bind configurations and helper scripts to Ddd bind configurations and helper scripts 2020-10-31 23:30:52 +01:00
kreyren changed title from Ddd bind configurations and helper scripts to Add bind configurations and helper scripts 2020-10-31 23:30:58 +01:00
kreyren requested review from wanderer 2020-10-31 23:31:12 +01:00
wanderer approved these changes 2020-11-01 09:49:35 +01:00
wanderer left a comment
Owner

looks fine to me now.

looks fine to me now.
wanderer merged commit 35ab911ad2 into master 2020-11-01 09:52:47 +01:00
Sign in to join this conversation.
No description provided.