TelegramMessenger / MTProxy

4.98k stars 829 forks source link

telegram app is ignoring TTL of DNS record #357

Open maghorbani opened 4 years ago

maghorbani commented 4 years ago

I have a mtproto proxy like this: server: sth.example.come port: xxx secret: some secret and when I change the A record (IP) of the server to another IP, the telegram app cannot connect to the new IP and it still tries the old IP! the problem remains until I close the telegram app and reopen it! but I'm always setting the TTL for the record to 10 seconds and I think the app should lookup for DNS every 10 seconds, but it wouldn't. how can this problem be solved? any idea?

yiiman-dev commented 4 years ago

install telegram x and user usefull log on it for check dns and ttl behavior if you need more details, you can connect with my phone for help