Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
import "fmt"
type DNSRecord struct {
Domain string
Target string
Policy string
}
func resolveDNS(record DNSRecord) {
fmt.Println("Domain:", record.Domain)
fmt.Println("Routing To:", record.Target)
fmt.Println("Routing Policy:", record.Policy)
}
func main() {
record := DNSRecord{
Domain: "api.example.com",
Target: "load-balancer.amazonaws.com",
Policy: "Weighted Routing",
}
resolveDNS(record)
}Coding works best on desktop or with an external keyboard.