pragma solidity ^0.5.0; contract DNSResolver { address public owner; mapping (bytes32 => bytes) zones; modifier owner_only { require(msg.sender == owner); _; } constructor() public { owner = msg.sender; } function setDnsrr(bytes32 node, bytes memory data) public owner_only { zones[node] = data; } function dnsrr(bytes32 node) public view returns (bytes memory) { return zones[node]; } function supportsInterface(bytes4 interfaceID) public pure returns (bool) { return interfaceID == 0x126a710e; } }