dns: rename domain to hostname
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 15 Oct 2013 10:51:12 +0000 (12:51 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 16 Oct 2013 19:56:16 +0000 (21:56 +0200)
commitceb8740a636e59b1e34cb3db0c3c4c79bb501dfa
treeadd0d7e01d46444442f77fbdaa5e039029a89f80
parent4234bcce486f5c037c9bcc5d121565b2bec9449c
dns: rename domain to hostname

A follow-up commit will save the domain name on the request object but
we can't call that property 'domain' because that gets intercepted by
src/node.cc and lib/domain.js to implement the node.js feature of the
same name.

To avoid confusion, rename all variables called 'domain' to 'hostname'.
doc/api/dns.markdown
lib/dns.js