CleverCloud / stream-dns

A DNS server written in Go with an event stream architecture, updated via kafka
MIT License
29 stars 2 forks source link

Allow to configure the answer authority section #3

Closed waxzce closed 5 years ago

waxzce commented 5 years ago

The authority section indicates the server(s) that are the ultimate authority for a zone where we are not the authoritary server e.g: .com. We can add in the configuration the SOA to return in the authority section when we have to return an NXDOMAIN on none authoritative zone. So the server will tell you the reason you're not getting the response you expect. But as it is, the SOA is about all you will get.

NOTE: The authority section contains RRs that point toward an authoritative name server see #RFC 1035

dig exemple:

; <<>> DiG 9.13.7 <<>> @8.8.8.8 +aaflag zandanzdazndazndazdn.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 60604
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;zandanzdazndazndazdn.com.  IN  A

;; AUTHORITY SECTION:
com.            899 IN  SOA a.gtld-servers.net. nstld.verisign-grs.com. 1554220581 1800 900 604800 86400