IDNSRecordResolver
Git Source (opens in a new tab)
Functions
dnsRecord
Obtain a DNS record.
function dnsRecord(bytes32 node, bytes32 name, uint16 resource) external view returns (bytes memory);
Parameters
Name | Type | Description |
---|---|---|
node | bytes32 | the namehash of the node for which to fetch the record |
name | bytes32 | the keccak-256 hash of the fully-qualified name for which to fetch the record |
resource | uint16 | the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types (opens in a new tab) |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes | the DNS record in wire format if present, otherwise empty |
Events
DNSRecordChanged
event DNSRecordChanged(bytes32 indexed node, bytes name, uint16 resource, bytes record);
DNSRecordDeleted
event DNSRecordDeleted(bytes32 indexed node, bytes name, uint16 resource);