-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle class B nets #166
Comments
Yea it is currently hardcoded to class C: puppet-dns/manifests/record/a.pp Line 24 in bef2b91
I would say you have two options:
It is hard though because the A record type doesn't "know" the scope of the reverse zone at the time the A record is created. Could be a parameter though? |
Thanks for fast replying. Defining an explicit ptr would be ok for me. Maybe you would be so nice and confirm correct definition?
Thank you! |
Zone should be |
Also @jearls can you comment on this thread? I could be just plain wrong re: comments in #138 |
All DNS reverse zones are, by definition, class C reverse zones. When a system does a look-up of the IPv4 address A.B.C.D, that look-up is issued as: D.C.B.A.IN-ADDR.ARPA - in other words, it looks up "D" in the A.B.C reverse zone, no matter what network size A.B.C.D is. So in this case, the reverse zones should be defined as:
|
I swore I could remember doing CIDR reverse delegations at a previous job. Here is a SO answer: http://serverfault.com/questions/22743/reverse-dns-in-a-cidr-world So I'm not sure if they are still "by definition". However in this case I agree that it will be easier for @ITler to bite the bullet and split up the class B into C. However |
See section 4.1 I'm not sure, but this at least looks to like reverse zones can be defined as class B, too. A colleague of mine says same. I've got no testing environment ready to prove.
I'll report back next week. |
Yes, if you're managing your own DNS zones, you can do a class B reverse zone by properly crafting the names within that zone:
However, to my knowledge, this module has no way to automatically create the Your example is close to working:
This would work. You just can't use the I might actually have a way to make the -- Johnson |
FYI - this can only be done for the original network classes (class A, class B, class C), since those are the network classes that are split up on octet boundaries. In my previous example, IP address
Edit: Corrected order of host components in class A and class B example |
Guys, that's awesome. Little question leading to nice improvement of the library. Many thanks for your support. |
Hy,
I don't get it to use your module to manage DNS for class B network. (No problem with class C)
Imagine, I've got this network in 10.22.0.0/16 with multiple hosts, i.e. 10.22.0.4, 10.22.2.33 and 10.22.177.218
All easy. When puppet runs, error is raised when concat module tries to assemble reverse zone config:
(I create the A-record on the DNS-client as puppet exported resource and realize it on DNS server)
When changing reverse zone definition to
dns::zone { '0.22.10.IN-ADDR.ARPA': [...] }
it is working, but this is not what I want to do.What is missing here?
Kind regards
ITler
The text was updated successfully, but these errors were encountered: