remove duplicate of ns1 and ns2
This commit is contained in:
parent
a8f399ab7f
commit
741faed37b
|
@ -1,6 +1,6 @@
|
|||
$TTL 2m
|
||||
@ IN SOA in.thelinuxpro.net. root.in.thelinuxpro.net. (
|
||||
24121801 ; serial, todays date + todays serial #
|
||||
24121901 ; serial, todays date + todays serial #
|
||||
1h ; refresh, seconds
|
||||
15m ; retry, seconds
|
||||
10D ; expire, seconds
|
||||
|
@ -43,9 +43,6 @@ filebeat01 IN A 10.99.23.74
|
|||
logstash01 IN A 10.99.23.75
|
||||
viz IN A 10.99.23.99
|
||||
;
|
||||
ns1 IN A 10.99.153.241
|
||||
ns2 IN A 10.99.153.242
|
||||
;
|
||||
pihole IN A 10.200.53.250
|
||||
1.ntp IN A 10.200.53.251
|
||||
2.ntp IN A 10.200.53.252
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
setup() {
|
||||
load 'bats-support'
|
||||
load 'bats-assert'
|
||||
}
|
||||
|
||||
export domain="kameronkenny.com"
|
||||
export serial="24070101"
|
||||
@test "Test A Record: kameronkenny.com" {
|
||||
run dig -t A kameronkenny.com +noall +answer
|
||||
assert_output --partial '204.8.15.81'
|
||||
}
|
||||
|
||||
@test "Test SOA Serial: kameronkenny.com" {
|
||||
run dig -t SOA kameronkenny.com +noall +answer +multi
|
||||
assert_output --partial "${serial}"
|
||||
}
|
||||
|
||||
# in.thelinuxpro.net
|
||||
serial="24121801"
|
||||
## nagios.in.thelinuxpro.net
|
||||
domain="nagios.in.thelinuxpro.net"
|
||||
@test "Test A Record: ${domain}" {
|
||||
dig -t A ${domain} +noall +answer
|
||||
assert_output --partial '10.99.23.36'
|
||||
}
|
||||
|
||||
@test "Test SOA Serial: nagios.in.thelinuxpro.net" {
|
||||
dig -t SOA nagios.in.thelinuxpro.net +noall +answer +multi
|
||||
assert_output --partial "${serial}"
|
||||
}
|
Loading…
Reference in New Issue