Open
Description
Does the above make sense to be added to the DnsHost implementation ?
I am working on project, where we have multiple DNS servers set on the client nodes and want to validate that the name resolution works using each of the DNS server, also at the same time be able to make different type of DNS queries to the DNS server.
Current implementation of the DnsHost does not let you specify a DNS server or the type of DNS query to for a validation test.
For Example - a machine can have multiple DNS servers, so this test should allow specifying a specific DNS server for the name resolution along with the type of DNS query to run for the test e.g MX or an A record query etc.
Describe 'multiple DNS servers' {
Context 'Test for the DNS server1' {
DnsHost cloud.local 10.116.2.250 {Should Not BeNullOrEmpty} # query the domain FQDN
DnsHost mail.cloud.local 10.116.2.250 -Type MX {Should Not BeNullOrEmpty} # test the MX record
}
Context 'Test for the DNS server2' {
DnsHost cloud.local 10.116.2.251 {Should Not BeNullOrEmpty}
DnsHost mail.cloud.local 10.116.2.251 -Type MX {Should Not BeNullOrEmpty}
}
}