feat: add option to enable or disable ipv4/ipv6
This commit is contained in:
parent
cf18a2e564
commit
9944b4e2fc
5 changed files with 17 additions and 2 deletions
spec
|
@ -32,6 +32,15 @@ describe file('/etc/bind/named.conf.local') do
|
|||
it { should contain '4.2.2.4' }
|
||||
end
|
||||
|
||||
describe file('/etc/bind/named.conf.options') do
|
||||
it { should be_file }
|
||||
it { should be_mode 644 }
|
||||
it { should be_owned_by 'root' }
|
||||
it { should be_grouped_into 'root' }
|
||||
it { should contain 'listen-on { any; };' }
|
||||
it { should contain 'listen-on-v6 { none; };' }
|
||||
end
|
||||
|
||||
describe port(53) do
|
||||
it { should be_listening.with('tcp') }
|
||||
it { should be_listening.with('udp') }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue