I have a Raspberry PI Zero W configured as a Wi-Fi access point and running a web server. Its hostname is a-casa-de-casario
. I can access my website perfectly from any other machine connected to the local network provided by the PI using the a-casa-de-casario.local
address. But is there a way to get rid of the .local
suffix so as to access the website using only the a-casa-de-casario
address?
The PI Zero W is providing the access point through its wlan0 interface and is therefore not connected to any other network. Here is the relevant part of /etc/dhcpcd.conf
:
interface wlan0
static ip_address=192.168.4.1/24
static domain_name_servers=192.168.4.1
nohook wpa_supplicant