split dnsr.go into multiple smaller files