Skip to main content

Adding internal ip address of main domains

Comments

3 comments

  • cPanelMichael
    Hello, I'll leave this thread open for user-feedback regarding discussion of the custom script, however I did want to make sure you were aware of the following document: 1:1 NAT - Version 68 Documentation - cPanel Documentation Is the /var/cpanel/cpnat file already populated on this server? Thank you.
    0
  • Geo Grav
    0
  • cPanelMichael
    We have been manually adding entries into the /etc/hosts file to over come this issue. Does someone have a script that will do this automatically? As very rough pseudocode: whmapi1 listaccounts for each non-suspended account, get the ip address via dns. if returned address is external server address, add the host-name alongwith internal address to /etc/hosts Oh, there probably needs to be a remove step there also.

    Hello, I'm not aware of any existing scripts that will perform those actions, however we provide a list of system admin services if you need help developing the custom script: System Administration Services | cPanel Forums Thank you.
    0

Please sign in to leave a comment.