j-c-m / ubnt-letsencrypt

Let's Encrypt setup instructions for Ubiquiti EdgeRouter
472 stars 68 forks source link

Additional steps needed for router's FQDN to work locally #49

Open ivordurham opened 1 year ago

ivordurham commented 1 year ago

I had to make two additional configuration changes before the local lookup of the FQDN for the router would work:

  1. Add the "localise-queries" option to the DNS forwarding configuration so that it would look at the static host-name map in /etc/hosts before forwarding to the external nameservers:

    set service dns forwarding options localise-queries

    My configuration is now:

    forwarding {
      cache-size 150
      listen-on switch0
      name-server 8.8.8.8
      name-server 8.8.4.4
      options localise-queries
   }
  1. Configure the DHCP server with the router IP address as the only DNS server.