Chore: Add DNS test for SRV-01

This commit is contained in:
Alexandre-Simao 2021-06-01 10:25:01 +02:00
parent 51e70f02f9
commit f743da78a6
1 changed files with 5 additions and 5 deletions

View File

@ -112,14 +112,12 @@ route add -p 192.168.128.0/24 192.168.8.254
route add -p 0.0.0.0/0 192.168.8.254
# END
echo "Adding DHCP server options"
Set-DhcpServerv4OptionValue -ScopeId 192.168.128.0 -Router 192.168.128.254
Set-DhcpServerv4OptionValue -ScopeId 192.168.12.0 -Router 192.168.12.254
Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -Router 192.168.8.254
Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.8.1
=======
Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.128.1,192.168.8.1
### Installing and configuring DNS role
@ -135,7 +133,9 @@ Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "microdown.local" -IPv4Add
Add-DnsServerResourceRecordA -Name "SRV-02" -ZoneName "microdown.local" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00
Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "microdown.local" -IPv4Address "192.168.255.254" -TimeToLive 01:00:00
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "microdown.local" #Test
Test-DnsServer -IPAddress 192.168.128.1 -ZoneName "micro.bou.local"
Read-Host "DNS Tests"
# Add local DNS for all Hosts