GLib – 2.0: Hostname Utilities
Description: Reference for GLib-2.0: Hostname Utilities

#### Hostname Utilities

Functions for manipulating internet hostnames; in particular, for converting between Unicode and ASCII-encoded forms of Internationalized Domain Names (IDNs).

The Internationalized Domain Names for Applications (IDNA) standards allow for the use of Unicode domain names in applications, while providing backward-compatibility with the old ASCII-only DNS, by defining an ASCII-Compatible Encoding of any given Unicode name, which can be used with non-IDN-aware applications and protocols. (For example, “Παν語.org” maps to “xn—4wa8awb4637h.org”.)

## Hostname Conversions

- `g_hostname_to_ascii()`
- `g_hostname_to_unicode()`

## Hostname Checks

- `g_hostname_is_non_ascii()`
- `g_hostname_is_ascii_encoded()`
- `g_hostname_is_ip_address()`