It should only ever be an explicitly localhost address (i.e. 127.0.0.1 or the IPv6 equivalent).
This is configured in the /etc/mysql/mariadb.conf.d/50-server.cnf file (on debian - I assume debian, since you're using mariadb)
I'm using Centos 7 with vestacp as a panel, unfortunately vestacp has all the configuration files wrong, it should be in /etc/my.cnf
this is my configuration:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
bind-address=127.0.0.1
skip-external-locking
skip-grant-tables
key_buffer_size = 256M
max_allowed_packet = 32M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 64M
query_cache_limit = 1M
thread_concurrency = 8
tmp_table_size=64M
max_heap_table_size=64M
skip-name-resolve
slow-query-log=1
slow-query-log-file= /var/lib/mysql/mysql-slow-query.log
long-query-time=1
innodb-buffer-pool-size=26G
innodb_buffer_pool_instances=8
default-storage-engine=INNODB
[mariadb]
plugin_load_add = server_audit
server_audit=FORCE_PLUS_PERMANENT
server_audit_file_path=/var/log/mysql/mariadb-audit.log
server_audit_logging=ON
#innodb_use_native_aio = 0
innodb_file_per_table
max_connections=250
max_user_connections=50
wait_timeout=10
interactive_timeout=50
long_query_time=5
#slow_query_log=1
#slow_query_log_file=/var/log/mysql-slow-queries.log
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d