Subdomain to local IP

Discussion in 'General' started by dnut, Feb 3, 2018.

  1. dnut

    dnut New Member

    Hello,
    I'm trying to figure out how to redirect subdomain to a local IP (residing in the internal network where ISP config reside)
    I'm running it Virtualized on my local LAN, for testing purposes, and I would like to point a subdomain to point to another server residing in the same LAN.
    Is it doable?
    Am I missing something?
    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If it's for testing, then I would simply add the subdomain to the hosts file on your desktop. This works for Windows, Linux and Mac desktops.
     
  3. dnut

    dnut New Member

    I would like to understand how to set it up in a more complex infrastructure:
    very often it happens that ispconfig runs as a VM in a virtual environment, I would like to be able to point subdomains to other VM running different web based services.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do this with a dns server in your local network or with the hosts file on the desktop that you use to access the servers.
     

Share This Page