Edit: I'm not looking for a full guide/answer necessarily, a nudge in the right direction (like what tool to use) would be of great help already! thanks :)
I am trying to create an accesspoint with a captive portal on my pi. The access point does not need to have internet access.
I succesfully configured the accesspoint using systemd-networkd and wpa_supplicant with the following configs:
/etc/systemd/network/10-wlan0.network
[Match]
Name = wlan0
[Network]
Address = 192.168.4.1/24
DHCPServer = yes
[DHCPServer]
DNS = 192.168.4.1
EmitDns = yes
PoolOffset = 1O
PoolSize = 40
DefaultLeaseTimeSec = 300
/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=BE
network={
ssid="piAp"
mode=2
frequency=2437
key_mgmt=NONE
}
I can connect to this 'hotspot' and I get an ip from the DHCP, so that all works.
/etc/hosts contains the following entry
127.0.0.1 raspberrypi
And running 'nslookup raspberrypi' locally on the pi produces the following output:
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authorative answer:
Name: raspberrypi
Address: 127.0.1.1
However, when I run the nslookup command on a machine connected to the ap, it fails to resolve the hostname.
So my question then is: What do I need to do to make sure the connected devices can resolve the 'raspberrypi' domain?