DNS: MultiaddrMatcher = ...

Matches any dns address.

Example

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

DNS.matches(multiaddr('/dnsaddr/example.org')) // true
DNS.matches(multiaddr('/dns4/example.org')) // true
DNS.matches(multiaddr('/dns6/example.org')) // true
DNS.matches(multiaddr('/dns6/example.org/p2p/Qmfoo')) // true