Fixed cname, static in /etc/hosts
This commit is contained in:
parent
57c9324bbe
commit
b317dfc652
48
dnsmasq/files/hosts
Normal file
48
dnsmasq/files/hosts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#
|
||||||
|
# hosts This file describes a number of hostname-to-address
|
||||||
|
# mappings for the TCP/IP subsystem. It is mostly
|
||||||
|
# used at boot time, when no name servers are running.
|
||||||
|
# On small systems, this file can be used instead of a
|
||||||
|
# "named" name server.
|
||||||
|
# Syntax:
|
||||||
|
#
|
||||||
|
# IP-Address Full-Qualified-Hostname Short-Hostname
|
||||||
|
#
|
||||||
|
|
||||||
|
127.0.0.1 localhost
|
||||||
|
|
||||||
|
# special IPv6 addresses
|
||||||
|
::1 localhost ipv6-localhost ipv6-loopback
|
||||||
|
|
||||||
|
fe00::0 ipv6-localnet
|
||||||
|
|
||||||
|
ff00::0 ipv6-mcastprefix
|
||||||
|
ff02::1 ipv6-allnodes
|
||||||
|
ff02::2 ipv6-allrouters
|
||||||
|
ff02::3 ipv6-allhosts
|
||||||
|
|
||||||
|
## rre infrasturcture
|
||||||
|
10.2.0.11 parsley
|
||||||
|
10.2.0.15 cumin
|
||||||
|
10.2.0.16 curry
|
||||||
|
10.2.0.17 chervil
|
||||||
|
10.2.0.101 salt
|
||||||
|
10.2.0.102 pepper
|
||||||
|
# MetalLB
|
||||||
|
# 10.2.0.60-70
|
||||||
|
10.2.0.60 public
|
||||||
|
10.2.0.61 private
|
||||||
|
10.2.0.62 unifi
|
||||||
|
10.2.0.63 gitea
|
||||||
|
10.2.0.64 mqtt
|
||||||
|
|
||||||
|
# Client network
|
||||||
|
10.0.10.3 sw2
|
||||||
|
10.0.10.4 ap1
|
||||||
|
10.0.10.5 ap2
|
||||||
|
10.0.10.6 ap3
|
||||||
|
10.0.10.7 ap4
|
||||||
|
10.0.10.20 woody
|
||||||
|
10.0.10.30 laserjet
|
||||||
|
|
||||||
|
|
@ -1,51 +1,12 @@
|
|||||||
|
server=10.2.0.1
|
||||||
|
local=/rre.nu/
|
||||||
expand-hosts
|
expand-hosts
|
||||||
domain=rre.nu
|
domain=rre.nu
|
||||||
server=10.2.0.1
|
|
||||||
# rre infrasturcture
|
|
||||||
address=/parsley/10.2.0.11
|
|
||||||
address=/parsley/10.2.0.15
|
|
||||||
address=/parsley/10.2.0.16
|
|
||||||
address=/parsley/10.2.0.17
|
|
||||||
address=/parsley/10.2.0.101
|
|
||||||
address=/parsley/10.2.0.102
|
|
||||||
|
|
||||||
address=/sw2/10.0.10.3
|
# public cnames
|
||||||
address=/ap1/10.0.10.4
|
cname=push.rre.nu,public.rre.nu.
|
||||||
address=/ap2/10.0.10.5
|
|
||||||
address=/ap3/10.0.10.6
|
|
||||||
address=/ap4/10.0.10.7
|
|
||||||
|
|
||||||
address=/woody/10.0.10.20
|
|
||||||
address=/laserjet/10.0.10.30
|
|
||||||
|
|
||||||
# MetalLB
|
|
||||||
# 10.2.0.60-70
|
|
||||||
address=/public/10.2.0.60
|
|
||||||
address=/private/10.2.0.61
|
|
||||||
address=/unifi/10.2.0.62
|
|
||||||
address=/gitea/10.2.0.63
|
|
||||||
address=/mqtt/10.2.0.64
|
|
||||||
|
|
||||||
|
|
||||||
# public
|
|
||||||
cname=git.rre.nu,public.rre.nu
|
cname=git.rre.nu,public.rre.nu
|
||||||
cname=home.rre.nu,public.rre.nu
|
cname=home.rre.nu,public.rre.nu
|
||||||
cname=push.rre.nu,public.rre.nu
|
|
||||||
cname=nextcloud.rre.nu,public.rre.nu
|
cname=nextcloud.rre.nu,public.rre.nu
|
||||||
|
cname=nodered.rre.nu,public.rre.nu
|
||||||
# private
|
|
||||||
cname=longhorn.rre.nu,public.rre.nu
|
cname=longhorn.rre.nu,public.rre.nu
|
||||||
|
|
||||||
#old
|
|
||||||
cname=grafana.rre.nu,chervil.rre.nu
|
|
||||||
cname=prom.rre.nu,chervil.rre.nu
|
|
||||||
cname=mariadb.rre.nu,curry.rre.nu
|
|
||||||
cname=influxdb.rre.nu,curry.rre.nu
|
|
||||||
cname=dns.rre.nu,curry.rre.nu
|
|
||||||
|
|
||||||
cname=gargamel.nu,cumin.rre.nu
|
|
||||||
cname=radicale.rre.nu,cumin.rre.nu
|
|
||||||
cname=nc.rre.nu,cumin.rre.nu
|
|
||||||
cname=mqtt.rre.nu,cumin.rre.nu
|
|
||||||
cname=paste.rre.nu,cumin.rre.nu
|
|
||||||
cname=l.rre.nu,cumin.rre.nu
|
|
||||||
|
@ -10,9 +10,19 @@ rre.nu configuration file:
|
|||||||
- group: root
|
- group: root
|
||||||
- mode: "0644"
|
- mode: "0644"
|
||||||
|
|
||||||
|
configure host file:
|
||||||
|
file.managed:
|
||||||
|
- name: /etc/hosts
|
||||||
|
- source: salt://dnsmasq/files/hosts
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: "0644"
|
||||||
|
|
||||||
|
|
||||||
start dnsmasq:
|
start dnsmasq:
|
||||||
service.running:
|
service.running:
|
||||||
- name: dnsmasq
|
- name: dnsmasq
|
||||||
- enable: True
|
- enable: True
|
||||||
- watch:
|
- watch:
|
||||||
- file: rre.nu configuration file
|
- file: rre.nu configuration file
|
||||||
|
- file: configure host file
|
||||||
|
Reference in New Issue
Block a user