-
Notifications
You must be signed in to change notification settings - Fork 527
[Request] Add DNS name to IP popup #1415
Comments
Edit: for some apps I receive the dns name |
Unfortunately this is not possibly. The connect hook is at the lowest level of Android. Doing a DNS lookup here would slow down your device, could result in instability and will result in recursion, since a DNS lookup also needs a connect. |
Try replacing address.toString() by address.getHostName() on the following line It I don't think it does a lookup, it will return a hostname if it has one, and the ip address otherwise. |
I will check the source code to be sure. |
The part I don't understand is that the popups for some apps show the hostname and some don't. |
I think we are good to go here:
Meaning that resolving the hostname is handled by Linux and won't result in recursion. |
This might delay making internet connection, however. |
You can try with this version: http://d-h.st/YuI |
I know this may be being a bit picky, but would a combination of DNS and IP be possible? The upside of of having only DNS is that the whitelist will not be as long, but on the other hand with a combination we could restrict multinational services to servers in Europe for example Also with this version Tapatalk cannot to XDA although it is not blacklisted. Faircode forum works ;) |
Tapatalk works for me without problems. |
@an0n981 |
@M66B sorry I somehow missed your reply, after a reboot XDA was working fine again. Given the fact that backbones in cretain countries are more prone to being monitored, I thought it would be a great security feature to be able to decide with which serves of the same service we connect to. For example I would feel a little more safe connecting to goggle services (bad example, they give me the creeps) if that server were in Europe as compared to the USA |
Another argument: this could help against DNS hijacking |
No description provided.
The text was updated successfully, but these errors were encountered: