James Seward on Nostr: When I put together my #FreeBSD native DNS filtering setup (to replace pihole) one of ...
When I put together my #FreeBSD native DNS filtering setup (to replace pihole) one of my goals was to see if I could do it with all things in the base system, which I could.
This morning I tweaked it to use sd and rg in place of sed and grep if they're installed, as particularly the former seemed to be quite slow processing the large lists (possibly user error). It now uses them if they're installed, else sed/grep.
Original runtime 2:10, new runtime 0:16, to create a list of 2.4M hosts :)
This morning I tweaked it to use sd and rg in place of sed and grep if they're installed, as particularly the former seemed to be quite slow processing the large lists (possibly user error). It now uses them if they're installed, else sed/grep.
Original runtime 2:10, new runtime 0:16, to create a list of 2.4M hosts :)