If you don't already have a raspberry pi, get a pi zero W and put dietpi on it. You configure the wireless settings via text file once you etch the SD card. You don't need a monitor. Personally, I set it up, looked at what DHCP address it had, and told my router to reserve that address. You can ssh into it to install pihole on the headless installation.