Created
December 10, 2017 09:09
-
-
Save anonymous/cd3b8b7b27e63d53662787fb144390c9 to your computer and use it in GitHub Desktop.
dns-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************ Welcome to NethServer ************ | |
This is a NethServer installation. | |
Before editing configuration files, be aware | |
of the automatic events and templates system. | |
http://docs.nethserver.org | |
*********************************************** | |
[root@mailserver ~]# db hosts show | |
autodiscover.mydomain.com=self | |
Description= | |
imap.mydomain.com=self | |
Description= | |
mail.mydomain.com=self | |
Description= | |
smtp.mydomain.com=self | |
Description= | |
[root@mailserver ~]# cat /etc/hosts | |
# ================= DO NOT MODIFY THIS FILE ================= | |
# | |
# Manual changes will be lost when this file is regenerated. | |
# | |
# Please read the developer's guide, which is available | |
# at NethServer official site: https://www.nethserver.org | |
# | |
# | |
# | |
# 10localhost | |
# | |
127.0.0.1 localhost localhost.localdomain | |
# | |
# 20hostname(s) | |
# | |
172.16.1.12 mailserver.mydomain.com mailserver smtp.mydomain.com imap.mydomain.com pop.mydomain.com pop3.mydomain.com autodiscover.mydomain.com imap.mydomain.com mail.mydomain.com smtp.mydomain.com | |
# | |
# 30hosts_remote | |
# | |
# | |
# 40hosts_local | |
# | |
[root@mailserver ~]# cat /etc/dnsmasq.conf | |
# ================= DO NOT MODIFY THIS FILE ================= | |
# | |
# Manual changes will be lost when this file is regenerated. | |
# | |
# Please read the developer's guide, which is available | |
# at NethServer official site: https://www.nethserver.org | |
# | |
# | |
# | |
# 10base | |
# | |
# Set the domain for dnsmasq. this is optional, but if it is set, it | |
# does the following things. | |
# 1) Allows DHCP hosts to have fully qualified domain names, as long | |
# as the domain part matches this setting. | |
# 2) Sets the "domain" DHCP option thereby potentially setting the | |
# domain of all systems configured by DHCP | |
# 3) Provides the domain part for "expand-hosts" | |
domain=mydomain.com | |
# | |
# 20dns | |
# | |
# Never forward plain names (without a dot or domain part) | |
domain-needed | |
# Using private dns servers, forwarding requests | |
# Domain is automatically added to simple names in a hosts-file. | |
expand-hosts | |
cache-size=4000 | |
# | |
# 25NameServers | |
# | |
# Don't read /etc/resolv.conf. Get upstream servers only from the | |
# command line or the dnsmasq configuration file. | |
no-resolv | |
# Specify IP address of upstream servers directly. Setting this flag | |
# does not suppress reading of /etc/resolv.conf, use "no-resolv" to do | |
# that. | |
server=172.16.1.5 | |
# By default, dnsmasq will send queries to any of the upstream | |
# servers it knows about and tries to favour servers that are known | |
# to be up. Uncommenting this forces dnsmasq to try each query | |
# with each server strictly in the order they appear in | |
# /etc/resolv.conf | |
strict-order | |
# forward RBL queries to localhost unbound | |
server=/uribl.com/127.0.0.1#10053 | |
server=/dnswl.org/127.0.0.1#10053 | |
server=/spamhaus.org/127.0.0.1#10053 | |
# | |
# 30dhcp | |
# | |
# Enable the DHCP server. Addresses will be given out from the range | |
# <start-addr> to <end-addr> and from statically defined addresses | |
# given in dhcp-host options. | |
# See db configuration getprop dnsmasq DhcpStatus | |
# Should be set when dnsmasq is definitely the only DHCP server on a | |
# network. | |
dhcp-authoritative | |
# Read dhcp reservations from dhcp-hostsfile. | |
# See dhcp-hosts option for more informations. | |
dhcp-hostsfile=/etc/dnsmasq-dhcp-hosts | |
# | |
# 40bind | |
# | |
except-interface=virbr0 | |
# | |
# 40mx_record | |
# | |
mx-host=mydomain.com,smtp.mydomain.com | |
# | |
# 50sssd -- the Samba Domain controller is | |
# the authoritative DNS for our realm/domain | |
# | |
server=/mydomain.com/172.16.1.6 | |
# | |
# 80tftp | |
# | |
enable-tftp | |
tftp-root=/var/lib/tftpboot | |
dhcp-option=66,"172.16.1.12" | |
# | |
# Create Domain wildcard for remote hosts | |
# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment