named-checkzone not failing check for a zone file that fails to load in named
Summary
named erroring on hostname with underscore (correct) named-checkzone says same zone file is fine (not correct)
BIND version used
9.16.7
Steps to reproduce
Create zone file with a underscore in middle of name:
foo_bar.example.com. IN A 1.2.3.4
What is the current bug behavior?
named-checkzone says zone is fine named refuses to load the zone saying it's got a bad owner name
What is the expected correct behavior?
named-checkzone should have reported the same error as named - not allowed the file through sanity checks and then have it refuse to load in named.