Email settings getting messed up overnight

After I set my email account successfully and save it. They work fine for one day and get messed up the other day.
It creates a TODO: Invalid Mail Server. Please rectify and try again.

Schedule log says this:

Traceback (innermost last):
File “/home/mtpi/frappe-bench/apps/frappe/frappe/email/receive.py”, line 68, in connect_pop
self.pop = Timed_POP3_SSL(self.settings.host, timeout=frappe.conf.get(“pop_timeout”))
File “/home/mtpi/frappe-bench/apps/frappe/frappe/email/receive.py”, line 400, in init
self._super.init(self, *args, **kwargs)
File “/usr/lib/python2.7/poplib.py”, line 346, in init
for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

Kindly Help

The Incoming check gets unchecked automatically

@shraddha PLease any comments on this

@Mohammad_Ahmad_Zulfi, seens like a DNS issue, maybe something in your environment change, and turn the Email host unreacheable! It works by the day?

@max_morais_dmm yes It works fine for one day. So how do you suggest to rectify the problem

@Mohammad_Ahmad_Zulfi, that is the point, if this is working while the day, but dont work in the night, is a environmental change, that is affecting you and not the software itself!

@max_morais_dmm Thank you for pointing it out. So should I contact my domain host?