DNSADDR: MultiaddrMatcher = ...

Matches dnsaddr addresses.

Use DNS instead to match any type of DNS address.

Example

import { multiaddr } from '@multiformats/multiaddr'
import { DNSADDR } from '@multiformats/multiaddr-matcher'

DNSADDR.matches(multiaddr('/dnsaddr/example.org')) // true
DNSADDR.matches(multiaddr('/dnsaddr/example.org/p2p/Qmfoo')) // true