karolherbst , Englisch
@karolherbst@chaos.social avatar

anybody experience with having a .local .lan .whatever domain for the local network based on hostnames or static assignments with openwrt?

I kinda want to move away from static IP addresses in my local network or rather.. I don't want to have to use them directly and was wondering what's the best way to configure it that it gets properly resolved.

nullr0ute ,
@nullr0ute@fosstodon.org avatar

@karolherbst I use mdns and it generally works just fine

erincandescent ,
@erincandescent@erincandescent.net avatar

@karolherbst with the default DNSMasq setup things should get automatically assigned hostname.lan if they get their IP from DHCP, you just need to give things DHCP static assignments

karolherbst OP ,
@karolherbst@chaos.social avatar

@erincandescent yeah, I was thinking the same, but it doesn't work. Maybe I messed with the config too much at some point, or maybe something else is going wrong. In any case, it doesn't work.

tk ,

@karolherbst @erincandescent your client has to send its hostname in the dhcp request, works without problems with the default config for openwrt. It stops working if you use something like unbound as a dns resolver

karolherbst OP ,
@karolherbst@chaos.social avatar

@tk @erincandescent sure, but I'm using dnsmasq and afaik all the required options are set.

karolherbst OP ,
@karolherbst@chaos.social avatar

@tk @erincandescent uhh.. nevermind, it apparently only works with some hostnames and only on some clients 🙃

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine