Настроил dnsmasq. Работает вроде как положено. Но вот с привязкой трабл. Сервер имеет имя my_server в hostname и запись в hosts - 192.168.1.2 my_server. В dnsmasq.conf прописал address=/my_server/192.168.1.2 но клиенты не видят сайт по имени my_server, а только по ip.
Но! если имя поменять на любое другое, то по нему открывается. Куда копать друзья?!
Аналогичный трабл с free-sa. Сопоставление имен есть в usertab. Но в статистике все ровно показывает ip.
Показать
#
# Sample configuration file for free-sa(1)
#
# copy to /etc/free-sa/free-sa.conf
#
##################
# GLOBAL OPTIONS #
##################
configuration_name="/etc/free-sa/free-sa.conf"
#cache_directory="/var/cache/free-sa"
target_directory="/var/www/free-sa"
#locale=""
####################
# LOG FILE OPTIONS #
####################
log_file="/var/log/squid/access.log"
#log_format="0"
#log_skip_errors="no"
#log_time_zone_shift="0"
##########################
# NAMES HANDLING OPTIONS #
##########################
#recipient_tolower="no"
#username_file="/etc/free-sa/usertab"
username_is_preferred="yes"
username_resolve_ip="yes"
#username_unescape="no"
###################
# FILTERS OPTIONS #
###################
#global_filter=""
# users_filter is enabled by default to keep default value of obsolete fulltraffic="false" 1.x.y option
users_filter="/etc/free-sa/users.filter.sample"
# HTTP related filter reports
local_filter="/etc/free-sa/HTTP_proxy_auth_failures.filter.sample"
local_filter="/etc/free-sa/HTTP_site_auth_failures.filter.sample"
local_filter="/etc/free-sa/HTTP_proxy_denied.filter.sample"
local_filter="/etc/free-sa/HTTP_site_denied.filter.sample"
local_filter="/etc/free-sa/HTTP_CONNECT_method.filter.sample"
local_filter="/etc/free-sa/HTTP_PUT+POST_method.filter.sample"
local_filter="/etc/free-sa/HTTP_downloads.filter.sample"
#local_filter="/etc/free-sa/HTTP_downloads_archives.filter.sample"
#local_filter="/etc/free-sa/HTTP_downloads_audio.filter.sample"
#local_filter="/etc/free-sa/HTTP_downloads_cddvd.filter.sample"
#local_filter="/etc/free-sa/HTTP_downloads_code.filter.sample"
#local_filter="/etc/free-sa/HTTP_downloads_office.filter.sample"
#local_filter="/etc/free-sa/HTTP_downloads_video.filter.sample"
#local_filter="/etc/free-sa/HTTP_unusual_methods.filter.sample"
#local_filter="/etc/free-sa/HTTP_unusual_codes.filter.sample"
# SMTP related filter reports
#local_filter="/etc/free-sa/SMTP_delivery_rejected.filter.sample"
#local_filter="/etc/free-sa/SMTP_receiving_rejected.filter.sample"
##########################
# GLOBAL REPORTS OPTIONS #
##########################
#reports_bytes_divisor="b"
#reports_indicators="yes"
#reports_logo=""
reports_overwrite="1"
#reports_privacy_mode="0"
#reports_privacy_username=""
#reports_rotate=""
#reports_show_info="yes"
#reports_site_name=""
#reports_svg_width="960"
#reports_url_limit="50"
##############################
# PARTICULAR REPORTS OPTIONS #
##############################
#email_address=""
#index_show_calendar="yes"
#index_sort="DATETIME"
#real_time_timeout="5000"
#server_efficiency_report="yes"
#server_efficiency_bytes_divisor="no"
#server_efficiency_svg=""
#top_sites_report="yes"
#top_sites_limit="0"
#top_sites_svg=""
#top_users_svg=""
#users_excess=""
#users_excess_limit="0"
#users_graphics_svg=""
#users_report="yes"
#users_fullurl_report="yes"
#users_fullurl_split="no"