all sites to '*' in the IPv4 field

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Aug 6, 2023.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    What is the recommended way to setup the IPv4 and IPv6 fields?
    I got problems with servers not resolving to the proper site when IP has been set.
    Also even if I use the * in the IPv4, there isn't any related for the IPv6?

    Any pros and cons?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Use * for all sites enables IPv4 + IPv6 name-based hosting.
     
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    Is there a way Till to change that value direct to the DB or with a script somehow to avoid editing hundreads of sites?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can change it in the database using phpmyadmin and then run Tools > resnyc on the sites. But using the IP address is fine as well, just do not mix * and IP on the same server.
     
  5. Stelios

    Stelios Active Member HowtoForge Supporter

    Thanks but how can I ensure that for example the myhostname.com will be solving always as the default in case someone write the IP or hostname?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Apache will show the first vhost in alphabetical order if no better matching site is found (no matter if you use * or the IP in sites). Therefore you can create a site like 000default.tld which is likely always the first one in alphabet to catch such requests and serve as the default vhost.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    What might also work is that you try to enter the IP address as the domain name for that site.
     

Share This Page