Network
DNS
You can configure which DNS servers to query when HAProxy ALOHA needs to resolve a server’s hostname. This is necessary, for example, when you want to specify a hostname instead of an IP address when defining a backend server. Also, features like Single Sign-on depend on resolving hostnames. Typically, these DNS servers will reside within the local network.
Changes affect the system’s /etc/resolv.conf
file.
-
In the Services tab, click system setup next to the system service.
-
Use the
dns_servers
directive to specify the IP addresses of your DNS servers, where each IP address is separated by a space.haproxyservice systemdns_servers 192.158.0.10 192.168.0.11haproxyservice systemdns_servers 192.158.0.10 192.168.0.11 -
Optional: Use the
dns_domain
directive to specify the search list, which is equivalent to setting asearch
directive in/etc/resolv.conf
. This allows you to use a server’s hostname in your configuration instead of its fully qualified domain name.If you specify the DNS suffix
example.com
, you will only have to typeapp
in your configuration, which will expand toapp.example.com
.haproxyservice systemdns_servers 192.158.0.10 192.168.0.11dns_domain example.comhaproxyservice systemdns_servers 192.158.0.10 192.168.0.11dns_domain example.com -
Optional: Use the
hostname
directive to change the HAProxy ALOHA hostname.haproxyservice systemdns_servers 192.158.0.10 192.168.0.11dns_domain example.comhostname aloha1haproxyservice systemdns_servers 192.158.0.10 192.168.0.11dns_domain example.comhostname aloha1 -
Reload the system service.
-
To make your changes persistent after a reboot, click the Setup tab. Then click Save under Configuration.
Do you have any suggestions on how we can improve the content of this page?