Smart Contracts
Interfaces
Resolvers
IDNSRecordResolver

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

NameTypeDescription
nodebytes32the namehash of the node for which to fetch the record
namebytes32the keccak-256 hash of the fully-qualified name for which to fetch the record
resourceuint16the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types (opens in a new tab)

Returns

NameTypeDescription
<none>bytesthe 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);