Jump to content

intodns no more working (at least on old WHMCS versions...)


Remitur
Go to solution Solved by DennisHermannsen,

Recommended Posts

Problem:

  • intodns.com service has changed his DNS, and the record www.intodns.com does not work anymore ( https://www.digwebinterface.com/?hostnames=www.intodns.com&type=&useresolver=8.8.4.4&ns=auth&nameservers= ); only the intodns.com record (without www) works fine
  • in WHMCS, in domain management page in admin area  the "intoDNS" function does not work anymore (at least on the WHMCS version I'm currently running, which is not up to date), because it point to www.intodns.com/example.com (and so it gets just an ERR_NAME_NOT_RESOLVED error)

Question: is it somehow possible to edit the admin template in order to fix this issue?
Or is it hard-coded in WHMCS, and so it's not possible to modify it?

Link to comment
Share on other sites

  • Solution

It's been broken for a long time. It's hardcoded into WHMCS. I've made the following hook that replaces all occurrences of www.intodns.com with intodns.com.

<?php

add_hook('AdminAreaFooterOutput', 1, function($vars) {
    $filename = $vars['filename'];
    $pages = ['clientsservices', 'clientsdomains'];
    if(in_array($filename, $pages)){
        return <<<HTML
        <script type='text/javascript'>
            document.body.innerHTML = document.body.innerHTML.replace(/www\.intodns\.com/g, 'intodns\.com'); 
        </script>
        HTML;
    }
});

Create a new file in /includes/hooks/ (call it whatever you want, as long as it's a .php file extension), paste the code in that file and save.

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