Fix the negative-caching warning and show warnings in the CLI
The soa_warning for negative caching fired on the SOA minimum alone and blamed BIND's resolver cap (max-ncache-ttl), which doesn't apply to an authoritative zone. Resolvers cache negative answers for the smaller of the SOA minimum and the SOA record's TTL (RFC 2308 section 5), and the SOA record uses the zone's default TTL. The warning now uses that value, explains the effect, and suggests the fix command (with --view when the zone is in a view). Also: - Problem.String shows zone names without the trailing dot (jarld check). - jarl prints the warnings a change introduces when it is applied or staged, not only on dry runs. - jarl check/resync print only named-checkconf errors, not its "loaded serial" lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bd6b8778e4
commit
3c73afe0e1
7 files changed
+89
-11
No files matched your search
@@ -14,6 +14,7 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"jarl/internal/dnsname"
|
||||
"jarl/internal/model"
|
||||
)
|
||||
|
||||
@@ -47,7 +48,7 @@ func (p Problem) Key() string {
|
||||
func (p Problem) String() string {
|
||||
loc := ""
|
||||
if p.Zone != "" {
|
||||
loc = "zone " + p.Zone
|
||||
loc = "zone " + dnsname.Display(p.Zone)
|
||||
if p.View != "" {
|
||||
loc += " [view " + p.View + "]"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user