Q: raspberrypi hostapd not connecting to the internet itself I was making an access point using my raspberry and hostapt, I followed the official guide on the raspberry pi foundation website and everything works fine, I can access my AP network and browse with my other devices connected BUT when trying to do every internet related thing on the raspberry it exits with errors such as this below, I'll provide every information needed below:
Rpi 3 model B connected via ethernet to the modem guide followed
ERROR when running sudo sudo apt update
Err:1 http://security.debian.org/debian-security bullseye-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:2 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
  Temporary failure resolving 'packagecloud.io'
Err:3 http://archive.raspberrypi.org/debian bullseye InRelease
  Temporary failure resolving 'archive.raspberrypi.org'
Err:4 http://deb.debian.org/debian bullseye InRelease
  Temporary failure resolving 'deb.debian.org'
Err:5 http://deb.debian.org/debian bullseye-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch https://packagecloud.io/ookla/speedtest-cli/debian/dists/bullseye/InRelease  Temporary failure resolving 'packagecloud.io'
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'archive.raspberrypi.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

/etc/dhcpcd.conf content:
#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1

# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1

# fallback to static profile on eth0
#interface eth0
#fallback static_eth

static domain_name_servers=8.8.4.4 8.8.8.8
interface br0

/etc/hostapd/hostapd.conf content:

country_code=IT
interface=wlan0
bridge=br0
ssid=Camera_AP
hw_mode=g
channel=9
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=*****0
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

ifconfig result:

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.7  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ba27:ebff:fe8d:5d9f  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:8d:5d:9f  txqueuelen 1000  (Ethernet)
        RX packets 3137  bytes 306671 (299.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1624  bytes 364952 (356.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.20  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ba27:ebff:fed8:8ca  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:d8:08:ca  txqueuelen 1000  (Ethernet)
        RX packets 4025  bytes 1072400 (1.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2846  bytes 579107 (565.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 254  bytes 21625 (21.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 254  bytes 21625 (21.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::eea3:43f2:4f8c:1766  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:8d:5d:9f  txqueuelen 1000  (Ethernet)
        RX packets 1130  bytes 168306 (164.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3482  bytes 1157047 (1.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

thanks for responding
