1

I have a server which hosts a website and also multiple API's. Lately when we try to access the website there is a delay that lasts a few seconds before actually loading. I have a good suspicion that this is due to some DNS setting. Is there a way to find out which DNS the server is actually using?

My /etc/resolv.conf file looks like this:

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 212.227.123.16
nameserver 212.227.123.17

I know the first 2 are from google, and the remaining are from ionos, strangely enough, one of our websites seem to throw an error if the last two entries (ionos) are not on that resolv.conf.

Adam Zalcman
  • 780
  • 5
  • 19
EmL
  • 83
  • 9

1 Answers1

1

DNS timeout use to be something like 10-15 seconds. To test domain resolution, you can access your server and execute nslookup:

nslookup yourdomain.com 8.8.8.8
nslookup yourdomain.com 8.8.4.4
nslookup yourdomain.com 1.1.1.1

so you can check how much time does it take to resolve DNS via different name server, and confirm if any of them are slowing it down or not answering

surfingonthenet
  • 715
  • 3
  • 7
  • Thank you, I will try it! I am sorry for the dumb question but what does nslookup do, and also why use 1.1.1.1 (My experience dealing with linux and these commands is pretty much zero, so I really am out of my element here – EmL Dec 10 '20 at 17:02
  • nslookup will resolve domain name via the specified named server, and not the one configured on your machine. So you have understand how other name server are (or not) resolving specific domain names – surfingonthenet Dec 10 '20 at 17:06
  • Ok that clears it up thank you! almost in tears here since you are the first to actually reply to one of my questions (I'm the new guy at the company and I am trying my best to figure some issues going around). One of my other questions got closed not long after I posted it – EmL Dec 10 '20 at 17:08
  • @EmL No worries, I'm glad to help – surfingonthenet Dec 10 '20 at 17:25