We have an application hosted in 2 ec-2 instances. In an AWS Route 53 record of A type, the domain is mapped with the IP addresses of those 2 servers. From one of the local VM in our office network, when the application was accessed from a program it gave DNS resolution failed error. dig domainname +short also did not gave any output. nslookup command also reported NX domain error.
After some exploring, found that in resolv.conf file the Nameserver value was 127.0.0.1. When we changed it with some other values, like default name server 8.8.4.4 once and other local machine IP issue did not occur.
Also tried nslookup -q=A domainname 8.26.56.26.When the name server value was 127.0.0.1 in resolv.conf file, except for this Comodo(US) name server IP, for all the other ones ( Google, CloudFlare ) output was success.
Can we get some assistance on when does the resolv.conf gets changed in general and why issues occur when the value is 127.0.0.1