This is a Go rewrite of the original dnsguide repository.
Follow these steps to run the DNS server and test it:
Use the following command to start the DNS server:
go run main.go
The DNS server will listen on port 2053.
You can test the DNS server by running the dig
command with the following syntax:
dig @127.0.0.1 -p 2053 google.com
This command queries the DNS server running on your local machine (@127.0.0.1
) on port 2053 for the IP address of google.com
.