title: DNS Response Packets
body: <p>I'm trying to code my own DNS server, I'm reading through RFC1035 on DNS but I have a few queries:</p>
  
  <p>1) I want my server to respond with a CNAME for a particular request, but no A records - can I do this? for example, receive request for 'server1.com', response 'CNAME server2.com', and then the client queries another DNS server to get the A record for 'server2.com'.
  I've currently set the header to: '\x84\x00' such to say this is the authoritive server, but recurse is not possible. Is this right?</p>
  
  <p>2) I want my server to respond with no records for any other request, such that the client then queries a different DNS server for the records. I've currently set header to '\x83\x03' such to signal a NAME ERROR reply code. Is this right? Then what do I follow this with, zeros in all the other fields, or just end the packet there? I don't want to respond with 'this name doesn't exist', rather 'I don't know this name, try someone else' - how do I do this?</p>
  
  <p>Many Thanks :)</p>