.local TLD is not resolved when in hosts file if used on Arch based Linux

Bug Summary

By Arch wiki .local should be only used with mDNS protocol, and not in hosts file.
Other TLDs work fine.
avachi on Arch wiki
Systemd-resolved mDNS

Steps to reproduce

  • Install localWP from AUR.
  • create website with default environment
  • .local domain is not resolved

Environment Info

Describe your environment.

  • What Operating System are you using? Garuda Linux (Arch based)
  • What versions of site software (Nginx, Apache, PHP, MySQL) default in 9.04
  • What version of Local is installed? 9.04

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

Include any screenshots or video recordings of the issue to help others reproduce.

Hi @kostiya

Thank you for raising this. I’m not able to test at the moment but I can pass it along to the Devs to check. When you change your Router Mode to Localhost does that work as normal?

Preferences>Advanced>Router Mode>Localhost

@Nick-B
As I said, localwp works as expected with any other TLD or directly from localhost.
I checked just in case and it works right as expected with localhost router mode.
From reading documentation, it’s the expected behavior to reserve .local for mDNS.
By default systemd-resolve mDNS is turned on my system and from my understanding most Linux desktops.
From my understanding the same problem will arise on windows if you turn on mDNS (which is off by default).
I will be happy to assist with anything, if needed.
Thank you.

Hey @kostiya – Welcome to the community forums!

I read through the Avahi wiki and it sounds like this is only an issue if configuring this service for systems on your network AND you use Local to create sites with domains that end in .local – is that correct?

Out of the box, Local has used the .local tld for a long time, but you aren’t forced to use that default. You can change the domain suffix from the new-site defaults under “Preferences > New Site Defaults”

2 Likes

@ben.turner
Yes, it’s correct.
That’s is an easy fix.
In my opinion if more Linux users complain, maybe it should be considered to change the default for Linux.
Thank you.

1 Like

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