raspberry pi 4 + hotspot + static ip

hi guys,

i have this:

2 wireless card
1 raspberry pi
dietpi 8.0.2

i want to create a hotspot with the card 1, with this following config :

sudo nmcli con down hotspot
sudo nmcli con delete hotspot
sudo nmcli con add type wifi ifname wlan0 con-name hotspot autoconnect yes ssid box4
sudo nmcli con modify hotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared ipv4.addresses 10.0.0.1/24
sudo nmcli con modify hotspot wifi-sec.key-mgmt wpa-psk
sudo nmcli con modify hotspot wifi-sec.psk 'box@123.'
sudo nmcli con up hotspot

then i have card 2 with static ip:
/etc/network/interfaces

allow-hotplug wlan1
iface wlan1 inet static
address 192.168.88.104
netmask 255.255.255.0
gateway 192.168.88.1
dns-nameservers 8.8.8.8 8.8.4.4 192.168.88.1 10.8.0.1
wireless-power off

the problem is when i try to connect with the hotspot i canĀ“t ! but if i change the config of the card 2 with dhcp its working

i try disable the DHCP with this commands:

sudo systemctl disable dhcpcd
sudo systemctl stop dhcpcd

but dhcpcd its not found!

can u help me ?

thanks

You want to connect card 2 to the Wifi of Card 1?
And they are both installed on the RPi4?

I guess card #1 is providing the hotspot wifi, while card #2 is connected to local network as bridge?

i found the solution:

sudo systemctl disable dnsmasq
sudo systemctl stop dnsmasq

dnsmasq is a local DNS server, similar to Pi-hole but without the ad blocking and monitoring part. If you do not configure router, the WiFi hotspots DHCP server or clients in your network to use the DietPi system itself as DNS resolver, it is not required. dhcpd by default is configured to use Google DNS, urg, we need to change this to Quad9 to match new system DNS nameserver default :open_mouth:, can be changed in /etc/dhcp/dhcpd.conf + systemctl restart isc-dhcp-server.

You can hence remove dnsmasq:
apt purge dnsmasq