block dns server

is it neccesary to block the public fron using dns port and hw can i do that?

yes, that is good practice to make local services not available to general public. Block port 53 UDP and TCP from outside networks.