tinydns (djbdns) 설정 샘플 예제

tinydns (djbdns) 설정 샘플 예제

설정 샘플
#define the authoritative nameserver
.example.com::ns1.example.com

#mail exchanger
@example.com::mail.example.com

#IP for machine1,2,3,4,5
=machine1.example.com:1.2.3.1
=machine2.example.com:1.2.3.2
=machine3.example.com:1.2.3.3
=machine4.example.com:1.2.3.4
=machine5.example.com:1.2.3.5

#machine5 is also known as ns1
+ns1.example.com:1.2.3.5

#machine1 is our mailserver
+mail.example.com:1.2.3.1

#and our webserver
+www.example.com:1.2.3.1

 

설정 참고

. SOA, NS, A
& NS, A
@ MX, A
= PTR, A
+ A
‘ TXT
^ PTR
C CNAME
Z SOA
% (client location conditional expression, does not create any records)
# (comment, does not create any records)
– (used to temporarily disable A records, does not create any records)
: User-defined
6 AAAA, PTR (with my patch)
3 AAAA (with my patch)

 

FAQ: https://www.fefe.de/djbdns/

Resolving DNS example
https://www.bytemark.co.uk/docs/domains/dnsc-example/
https://wiki.alpinelinux.org/wiki/TinyDNS_Format

You may also like