     }
            } catch (error) {
                console.error('DNS resolution failed:', error);
                showToast(`DNS resolution failed: ${error.message}`, 'error');
            }
        }

        function goBack() {
            window.history.back();
        }

        function goForward() {
            window.history.forward();
        }

        function goHome() {
            document.getElementById('urlBar').value = '';
            document.getElementById('searchResults').innerHTML = ''