you can check out the docs: http://nodejs.org/api/domain.html