Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deploy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
paradise
deploy
Commits
be3ffbd3
There was an error fetching the commit references. Please try again later.
Commit
be3ffbd3
authored
3 years ago
by
Vladimír Štill
Browse files
Options
Downloads
Patches
Plain Diff
ansible: Fix DNS records on gate
parent
56182b63
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/templates/bind/named.conf.options.j2
+23
-21
23 additions, 21 deletions
ansible/templates/bind/named.conf.options.j2
ansible/templates/dhcpd.conf.j2
+5
-1
5 additions, 1 deletion
ansible/templates/dhcpd.conf.j2
ansible/templates/dhcpd6.conf.j2
+5
-1
5 additions, 1 deletion
ansible/templates/dhcpd6.conf.j2
with
33 additions
and
23 deletions
ansible/templates/bind/named.conf.options.j2
+
23
−
21
View file @
be3ffbd3
options {
options {
directory "/var/cache/bind";
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// the all-0's placeholder.
//========================================================================
//========================================================================
// If BIND logs error messages about the root key being expired,
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
//========================================================================
dnssec-validation auto;
dnssec-validation auto;
listen-on { any; };
listen-on { any; };
listen-on-v6 { any; };
listen-on-v6 { any; };
forwarders {
forwarders {
83.240.0.215;
{# netbox #}
83.240.0.215;
{# netbox #}
83.240.0.136;
{# netbox #}
83.240.0.136;
{# netbox #}
193.0.14.129;
{# root K #}
208.67.222.222;
{# opendns #}
192.36.148.17;
{# root I #}
208.67.220.220;
{# opendns #}
1.1.1.1;
{# Cloudflare #}
1.0.0.1;
{# Cloudflare #}
2001:4cc8:0:4:0:5:0:1;
{# netbox #}
2001:4cc8:0:4:0:5:0:1;
{# netbox #}
2001:4cc8:0:4:0:6:0:1;
{# netbox #}
2001:4cc8:0:4:0:6:0:1;
{# netbox #}
2620:119:35::35;
{# opendns.com #}
2620:119:35::35;
{# opendns.com #}
2620:119:53::53;
{# opendns.com #}
2620:119:53::53;
{# opendns.com #}
2
001:7fe::53;
{# root I
#}
2
606:4700:4700::1111;
{# cloudflare
#}
2
001:7fd::1;
{# root K
#}
2
606:4700:4700::1001;
{# cloudflare
#}
};
};
allow-recursion {
allow-recursion {
192.168.0.0/16;
192.168.0.0/16;
{{
net.ipv6_prefix
}}
::0/64;
{{
net.ipv6_prefix
}}
::0/64;
...
@@ -41,4 +43,4 @@ options {
...
@@ -41,4 +43,4 @@ options {
hostname "
{{
inventory_hostname
}}
";
hostname "
{{
inventory_hostname
}}
";
};
};
// vim: ft=jinja
// vim: ft=jinja
expandtab
This diff is collapsed.
Click to expand it.
ansible/templates/dhcpd.conf.j2
+
5
−
1
View file @
be3ffbd3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# option definitions common to all supported networks...
# option definitions common to all supported networks...
option domain-name "p.vstill.cz";
option domain-name "p.vstill.cz";
option domain-name-servers 192.168.5.1,
192.36.148.17 {# root I
#}, 1
93
.0.
14.129 {# root K
#}, 83.240.0.215 {# netbox #}, 83.240.0.136 {# netbox #};
option domain-name-servers 192.168.5.1,
208.67.222.222
{# opendns #}
, 208.67.220.220
{# opendns #}
, 1.1.1.1
{# Cloudflare
#}
, 1.0.
0.1
{# Cloudflare
#}
, 83.240.0.215
{# netbox #}
, 83.240.0.136
{# netbox #}
;
default-lease-time 600;
default-lease-time 600;
max-lease-time 7200;
max-lease-time 7200;
...
@@ -25,3 +25,7 @@ host {{h.name}} {
...
@@ -25,3 +25,7 @@ host {{h.name}} {
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
{#
vim: ft=jinja expandtab
#}
This diff is collapsed.
Click to expand it.
ansible/templates/dhcpd6.conf.j2
+
5
−
1
View file @
be3ffbd3
# WARNING: This file is automatically managed by ansible, any changes in it will be discarded on configuration reload
# WARNING: This file is automatically managed by ansible, any changes in it will be discarded on configuration reload
# option definitions common to all supported networks...
# option definitions common to all supported networks...
option dhcp6.name-servers {{net.ipv6_prefix}}::1, 2620:119:35::35, 2620:119:53::53
, 2001:7fe::53, 2001:7fd::1
;
option dhcp6.name-servers
{{
net.ipv6_prefix
}}
::1, 2620:119:35::35
{# opendns #}
, 2620:119:53::53
{# opendns #}
, 2606:4700:4700::1111
{# cloudflare #}
, 2606:4700:4700::1001
{# cloudflare #}
;
option dhcp6.domain-search "ipv6.vstill.cz";
option dhcp6.domain-search "ipv6.vstill.cz";
default-lease-time 600;
default-lease-time 600;
...
@@ -27,3 +27,7 @@ host {{h.name}} {
...
@@ -27,3 +27,7 @@ host {{h.name}} {
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
{#
vim: ft=jinja expandtab
#}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment