Recently I built up a local DNS server on my mac, and I want every DNS query go through that server rather than the distributed DNS address(192.168.1.1) from my router.
I think redirecting the 192.168.1.1:53 to 127.0.0.1:53 would be the best solution.
But after a search on google, I never met one person who have a similar question. Other answer were vague or wrong. Now I know I should use pfctl but I failed doing it several times.
Can someone please tell me how to redirect a LAN port to a local port? Thanks!