Yes, you can do it but not without any worries or complaints. The DNS server which is local to your device sends whatever issues you have internally onto the internet. This is something to be actually worried about. Not only does it blatantly exposes your data and your plans for security it also violates it. The violation may depend upon how secure your server is depending on which the violation may be too strong or weak.