I couldn't tell from your post what distribution you are using. If you were using a RedHat based distribution, you could do something like:
service <name_of_service> restart
Where <name_of_service> is the name of the service you want to restart for example:
service named restart
Would restart the DNS service.