[Solved] Access Luci via hostname/domain name instead of IP

I would like to access the Luci login page via a domain name instead of typing in 192.168.1.1. I see that the router already has a hostname set to OpenWrt.lan but if I try typing it in or http://openwrt.lan it is unable to find the page. How can I achieve this using the hostname?

I'm sure there're many ways to skin the cat, here's how I do it with the custom domain name:

config dnsmasq
        ...
        list address '/router.domain.com/192.168.1.1'
        ...

Also, if your local clients cannot access OpenWrt.lan, are you sure they're using your router for DNS resolution and not some other DNS server either hardcoded on the client or given thru DHCP options by router?

2 Likes

Thanks for the reply! Turns out that was my problem. I had set my laptop to use another DNS server instead of setting it to automatic. Thanks for the help

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

I'm still only at Trust Level 1 and don't think I can edit my posts yet to do that

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