title: NodeJS - get buffer object in binary/bits form
body: <p>I am learning Node JS.</p>
  
  <p>Deal with UDP server using node js.</p>
  
  <p><strong>I want deal with bytes by bytes on UDP packets its contain DNS query packet.</strong></p>
  
  <p>That receive message on 'message' event, That give message as buffer object.</p>
  
  <pre><code>var s = dgram.createSocket('udp4'); 
  s.bind(53, function() {
  
  });
  s.on('message',function(msg,rinfo){
      console.log("Length = "+msg.length);
      console.log(msg.toString());
  });
  </code></pre>
  
  <p>I want get received message as binary form. How can  I get message in binary form from buffer object.</p>
  
  <p>I tried to read Node JS document but I can not found. Please help me out.</p>