/** @title DNS Registrar */
// Store the owner of a particular domain
mapping(string => address) public domainOwner;
// Store the resolution of a particular domain
/// @imp fffc `public` provides access method for domain resolver
mapping(string => address) public domainResolution;
/** @title setDomainResolution Allows user to set resolution for address
* @param _domain Domain name as ASCII string
* @param _resolution Address domain will resolve to
function setDomainResolution(
/// @imp c84d Check if name has been previously registered
if (domainOwner[_domain] != 0x0)
/// @imp 35a4 Reject if domain has been registered to another user
require(domainOwner[_domain] == msg.sender);
else // domain owner is unset for this domain
/// @imp c84d Keep track of newly registered domain
domainOwner[_domain] = msg.sender;
/// @imp c84d Allow user to set resolution for newly registered domain
/// @imp e532 Allow user to change resolution for a domain they own
domainResolution[_domain] = _resolution;