Jump to content

WHMCS is using the wrong DNS resolvers


dwilliams

Recommended Posts

Whenever my WHMCS instance needs to resolve an FQDN to an IP address, it is using the DNS resolvers that were configured in the OS at installation time rather than those currently configured in the OS. For example, say I had 1.1.1.1 in /etc/resolv.conf at installation time but now have 2.2.2.2; WHMCS is still trying first to use 1.1.1.1 and waiting for a time-out before continuing, slowing down page-load times. I have observed this behavior at the following places, so I suspect it occurs whenever WHMCS has a DNS query:

 

Clients > Domain Registrations

Utilities > WHOIS Lookup

Utilities > Domain Resolver

 

I know WHMCS is using the wrong resolver because I see it happening in packet captures. I know the OS is working properly because commands like dig(1) are using the resolvers specified in /etc/resolv.conf.

 

I've searched my WHMCS database and grepped all of the files in the WHMCS directory tree without success. There are actually two wrong IP addresses WHMCS is trying to use, so it's waiting for two resolver time-outs when loading certain pages, causing unacceptable page-load times.

 

How can I get WHMCS to use the resolvers specified in /etc/resolv.conf?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated