How does fakeip determine the upstream?

I have the same question with this post: 请问 fakeip 最后如何进行 dns 查询?. Unfortunately, the link in this post doesn’t work anymore.