Issue Feature Closed

#81356Make hostname work like IP address in devIPmask setting

Markus Kappe 05/29/17, 10:33 updated 06/24/24, 12:22

Description

Unfortunatly I don’t have a fixed IP address, so I use a dyndns-like service to identify my computer. That has some implications when it comes to debugging, because when I use

[SYS][displayErrors] = -1

I would like to be able to write

[SYS][devIPmask] = example.dyndns.com

The IP address can be obtained by http://php.net/manual/function.gethostbyname.php so I guess it would be rather easy to extend this functionality.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Susanne Moog changed category 03/25/20, 13:58

  2. Oliver Hader commented 06/24/24, 11:10

    Seems to be doable, however there are two remarks:

    • multiple IP addresses for one domain name, e.g. round robin assignments
    • intermediate caching in case there is no local DNS server to avoid blocking requests during the IP resolution via an external DNS server
  3. Benni Mack commented and changed status New Closed 06/24/24, 12:22

    We won’t do that.

    This is IMHO an edge-case issue: One could also use a VPN to conquer this.

    - gethostbyname() does not properly support IP v6
    - gethostbyname() / DNS can be an issue for disabling the site completely.

    Instead, I would go with a solution / workaround in your case in AdditionalConfiguration /additional.php:

    if ($_SERVER['REMOTE_HOST'] === 'my.site') {
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIpMask'] = '*';
    }