Created
December 10, 2017 09:17
-
-
Save anonymous/3a960e18abb934f2b656432e69b4d8ec to your computer and use it in GitHub Desktop.
Nethserver DNS config DNS server
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@dnsserver ~]# db hosts show | |
alfresco.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.20 | |
autodiscover.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.12 | |
ftp.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.15 | |
imap.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.12 | |
mail.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.12 | |
smtp.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.12 | |
www.mydomain.com=remote | |
Description= | |
IpAddress=172.16.1.25 | |
[root@dnsserver ~]# 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.5 dnsserver.mydomain.com dnsserver | |
# | |
# 30hosts_remote | |
# | |
172.16.1.20 alfresco.mydomain.com alfresco | |
172.16.1.12 autodiscover.mydomain.com autodiscover | |
172.16.1.15 ftp.mydomain.com ftp | |
172.16.1.12 imap.mydomain.com imap | |
172.16.1.12 mail.mydomain.com mail | |
172.16.1.12 smtp.mydomain.com smtp | |
172.16.1.25 www.mydomain.com www | |
# | |
# 40hosts_local | |
# | |
[root@dnsserver ~]# 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 | |
# Never forward addresses in the non-routed address spaces. | |
bogus-priv | |
# 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=8.8.8.8 | |
# 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 | |
# | |
# 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 | |
# | |
# 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.5" | |
[root@dnsserver ~]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment