DNS4: MultiaddrMatcher = ...

Matches dns4 addresses.

Use DNS instead to match any type of DNS address.

Example

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

DNS4.matches(multiaddr('/dns4/example.org')) // true