async def METHOD_NAME(coresys: CoreSys, dns_query: AsyncMock, capture_exception: Mock):
    """Test check for DNS server IPv6 errors."""
    dns_server_ipv6 = CheckDNSServerIPv6(coresys)
    coresys.core.state = CoreState.RUNNING
    coresys.plugins.dns.servers = ["dns://1.1.1.1"]
    assert dns_server_ipv6.dns_servers == [
        "dns://1.1.1.1",
        "dns://192.168.30.1",
    ]
    assert len(coresys.resolution.issues) == 0
    await dns_server_ipv6.run_check.__wrapped__(dns_server_ipv6)
    assert dns_query.call_args_list == [
        call("_checkdns.home-assistant.io", "AAAA"),
        call("_checkdns.home-assistant.io", "AAAA"),
    ]
    assert len(coresys.resolution.issues) == 0
    dns_query.reset_mock()
    coresys.plugins.dns.servers = []
    assert dns_server_ipv6.dns_servers == ["dns://192.168.30.1"]
    dns_query.side_effect = DNSError(1, "DNS server returned answer with no data")
    await dns_server_ipv6.run_check.__wrapped__(dns_server_ipv6)
    dns_query.assert_called_once_with("_checkdns.home-assistant.io", "AAAA")
    assert len(coresys.resolution.issues) == 0
    dns_query.reset_mock()
    dns_query.side_effect = (err := DNSError(4, "Domain name not found"))
    await dns_server_ipv6.run_check.__wrapped__(dns_server_ipv6)
    dns_query.assert_called_once_with("_checkdns.home-assistant.io", "AAAA")
    assert len(coresys.resolution.issues) == 1
    assert coresys.resolution.issues[0].type is IssueType.DNS_SERVER_IPV6_ERROR
    assert coresys.resolution.issues[0].context is ContextType.DNS_SERVER
    assert coresys.resolution.issues[0].reference == "dns://192.168.30.1"
    capture_exception.assert_called_once_with(err)