Const
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
Matches any dns address.