Comments (5)
@robertdebock Yes, feel free to use the file if you like and I am happy to help.
Thanks so much for the corrections, I can never remember when to use the trailing dot and when to omit it.
from ansible-role-dns.
Clear and improving documentation is a great plan. I'll debug your posted example, fix and include it in testing and documentation.
from ansible-role-dns.
I've changed your dns configuration a bit into this working version:
# Added `dns_zones`.
dns_zones:
# Remove the trailing period (.).
- name: lab.controlplane.info
ttl: 600
ns:
# Added a trailing period (.).
- name: ns.lab.controlplane.info.
mx:
- name: mail1.lab.controlplane.info.
priority: 10
- name: mail2.lab.controlplane.info.
priority: 20
records:
- name: ns
value: 192.168.254.27
- name: git
value: 192.168.254.19
- name: dl380
value: 192.168.254.27
# Added mail1 because is't mentioned in the mx records
- name: mail1
value: 192.168.123.123
# Added mail2 because is't mentioned in the mx records
- name: mail2
value: 192.168.123.123
# Remove the trailing period (.).
- name: forwarded.lab.controlplane.info
ns:
- name: forwarded.lab.controlplane.info.
records:
- name: ns
value: 192.168.254.27
# Added ns because it's mentioned in the ns records
- name: "@"
value: 192.168.123.123
dns_zone_forwarders:
- 9.9.9.9
- 8.8.8.8
# An optional list of acls to allow recursion. ("any" and "none" are always available.)
dns_allow_recursion:
- none
# An optional setting to forward traffic to other DNS servers.
dns_options_forwarders:
# - 1.1.1.1
- 8.8.8.8
Is it okay if I include this example in the documentation?
from ansible-role-dns.
Just released a new version including your example, thansk!
from ansible-role-dns.
@robertdebock I should probably confess that I don't understand the purpose of this subdomain:
# Remove the trailing period (.). - name: forwarded.lab.controlplane.info ns: - name: forwarded.lab.controlplane.info. records: - name: ns value: 192.168.254.27 # Added ns because it's mentioned in the ns records - name: "@" value: 192.168.123.123
I left it in my zone file because it was in the example, but I don't actually have a subdomain called "forwarding"...
-Blaise
https://en.wikipedia.org/wiki/Cargo_cult_programming
from ansible-role-dns.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-dns.