notwaldorf / cat-dns

:computer::cat: A DNS server that resolves everything to cats.
http://meowni.ca/posts/go-cat-dns-go/
MIT License
203 stars 23 forks source link

cat-dns answers are invalid #5

Closed colmmacc closed 10 years ago

colmmacc commented 10 years ago

cat-dns's answers don't include the original question, in violation of RFC1035. DNS answers must include the original question being asked. So the qd_count should be 1, the an_count should be 1 (since cats have just one IP address) and ar_count and ns_count should always be zero.

notwaldorf commented 10 years ago

Fixed by in 918f96b