https://github.com/poomsmart/letmeblock
Makes mDNSResponder care more about /etc/hosts
https://github.com/poomsmart/letmeblock
Last synced: 4 months ago
JSON representation
Makes mDNSResponder care more about /etc/hosts
- Host: GitHub
- URL: https://github.com/poomsmart/letmeblock
- Owner: PoomSmart
- License: mit
- Created: 2019-02-23T13:11:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-05T04:48:36.000Z (over 1 year ago)
- Last Synced: 2025-10-14T19:07:51.675Z (8 months ago)
- Language: Logos
- Homepage:
- Size: 164 KB
- Stars: 70
- Watchers: 5
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LetMeBlock
Makes mDNSResponder care about `(/var/jb)/etc/hosts` on iOS 12+, and load **all** entries on iOS 9+
In order to load all entries on iOS 9+, the memory limits defined in `Version4 > Daemon > Override > com.apple.mDNSResponder.reloaded` of the jetsam properties plist **must be increased**. This can be done either by manually editing the plist (and rebooting) or using jetsamctl's API, see [here](https://github.com/conradev/jetsamctl).
If in any cases the tweak does not seem to work, you either
* Reinstall LetMeBlock from your package manager of choice
* Run the command `killall -9 mDNSResponder; killall -9 mDNSResponderHelper` as root
## Compiling
```
make
```
If `xpc.h` isn't found, run:
```
sudo ln -s $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/xpc $(xcode-select -p)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/xpc
sudo ln -s $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/launch.h $(xcode-select -p)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/launch.h
```