This program is a simple dns proxy. It accepts DNS queries over UDP/TCP/TLS 
and forwards queries to specified server.

For TLS, it only supports TLS negotiation mentioned in this I-D:
[http://tools.ietf.org/html/draft-hzhwm-start-tls-for-dns-00] 
and does NOT accepts TLS queries directly.

The default listening port is 6667. You can change this by -p option.

To run this proxy, you need to provide key, certificate and crl files. 
Samples are included for testing purpose. You should generate you own
cerificate.

You can use the following command to generate a self-signed certificate
certtool --generate-privkey --outfile key.pem
certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem
certtool --generate-crl --load-ca-privkey key.pem --load-ca-certificate cert.pem --outfile=crl.pem

There are sevaral options in server.hh you may modify before compiling:
1. You can modify server ip and port
   #define DNS_SERV_PORT 53
   #define DNS_SERV_IP "8.8.8.8"

2. The max number of quereis this proxy can support
   #define MAX_NUM_QUERY	5000
   This number should not be larger than 65535

