Linux
127.0.1.1in/etc/hostsis to allow some applications like Gnome to resolve the hostname to an ip address with a canonical fully qualified domain name - FQDN (Source)sudoneeds to resolve hostnames because the sudoers file specifies hostnames in the rules. Hence sudo requires both loopback and “real”. (Source)pkexeclets authorized users execute programs as another user.