Unable to access GUI by entering the hostname

I cannot anymore access my router through the GUI by entering the hostname “router.xxx.com” .

I still have access on the GUI by entering the ip address.

I did set up the DDNS and it looks ok.

show dns dynamic status
interface  : eth0
ip address  : xx.xx.xx.204
host-name  : router.xxx.com
last update : Wed Jul 8 10:59:15 2020
update-status: good

The DMZ is enabled in the broadband box provider. ( if the DMZ is disabled, I’m connected on the broadband provider by entering “router.xxx.com”).

I remember I could have access a few days ago but as I reinstalled everything after multiple configuration , I cannot get it back.

I still have access to the ERL though the ip address in the browser.

My config

firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
    default-action drop
    description "WAN to internal"
    enable-default-log
    rule 10 {
        action accept
        description "Allow established/related"
        state {
            established enable
            related enable
        }
    }
    rule 20 {
        action drop
        description "Drop invalid state"
        log enable
        state {
            invalid enable
        }
    }
}
name WAN_LOCAL {
    default-action drop
    description "WAN to router"
    enable-default-log
    rule 10 {
        action accept
        description "Allow established/related"
        state {
            established enable
            related enable
        }
    }
    rule 20 {
        action drop
        description "Drop invalid state"
        log enable
        state {
            invalid enable
        }
    }
    rule 30 {
        action accept
        description "Limit pings"
        limit {
            burst 1
            rate 50/minute
        }
        log enable
        protocol icmp
    }
    rule 40 {
        action accept
        description " Allow local port 443 for Dynamic DNS"
        destination {
            port 443
        }
        log enable
        protocol tcp
    }
    rule 50 {
        action accept
        description "Allow SSH to router"
        destination {
            port 2222
        }
        log enable
        protocol tcp
    }
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
ethernet eth0 {
    address dhcp
    description Wan
    duplex auto
    firewall {
        in {
            name WAN_IN
        }
        local {
            name WAN_LOCAL
        }
    }
    speed auto
}
ethernet eth1 {
    address 10.10.2.1/24
    description "Lan room 1"
    duplex auto
    speed auto
}
ethernet eth2 {
    address 10.10.3.1/24
    description "Lan room 2"
    duplex auto
    speed auto
}
loopback lo {
}
}
service {
dhcp-server {
    disabled false
    hostfile-update enable
    shared-network-name LAN1 {
        authoritative enable
        subnet 10.10.2.0/24 {
            default-router 10.10.2.1
            dns-server 10.10.2.1
            lease 86400
            start 10.10.2.38 {
                stop 10.10.2.243
            }
        }
    }
    shared-network-name LAN2 {
        authoritative enable
        subnet 10.10.3.0/24 {
            default-router 10.10.3.1
            dns-server 10.10.3.1
            lease 86400
            start 10.10.3.38 {
                stop 10.10.3.243
            }
        }
    }
    static-arp disable
    use-dnsmasq enable
}
dns {
    dynamic {
        interface eth0 {
            service dyndns {
                host-name router.xxx.com
                login xxx-router
                password xxxxxx
                server xxxxx
            }
            web dyndns
        }
    }
    forwarding {
        cache-size 400
        listen-on eth1
        listen-on eth2
        name-server 1.1.1.1
        name-server 208.67.222.222
        options domain-needed
        options bogus-priv
        options all-servers
    }
}
gui {
    http-port 80
    https-port 443
    older-ciphers enable
}
nat {
    rule 5010 {
        description "masquerade for WAN"
        outbound-interface eth0
        type masquerade
    }
}
ssh {
    disable-password-authentication
    port 2222
    protocol-version v2
}
unms {
    disable
}
}
system {
domain-name xxx.com
host-name router.xxx.com
login {
    user xxx {
        authentication {
            encrypted-password xxxxx
            plaintext-password ""
            public-keys rsa-key-20200706 {
                key xxxxxx
                type ssh-rsa
            }
        }
        full-name ""
        level admin
    }
}
name-server 127.0.0.1
ntp {
    server 0.ubnt.pool.ntp.org {
    }
    server 1.ubnt.pool.ntp.org {
    }
    server 2.ubnt.pool.ntp.org {
    }
    server 3.ubnt.pool.ntp.org {
    }
}
syslog {
    global {
        facility all {
            level notice
        }
        facility protocols {
            level debug
        }
    }
}
time-zone Europe/London
}

Any idea why?

Thank you

You aren’t running VyOS. You’re running EdgeOS. VyOS is not Ubiquiti.

You need to use the Ubiquiti forums.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.