Skip to content
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

DNS Variables (RRCLONE) #50

Closed
ShaneMcC opened this issue Mar 11, 2019 · 4 comments
Closed

DNS Variables (RRCLONE) #50

ShaneMcC opened this issue Mar 11, 2019 · 4 comments

Comments

@ShaneMcC
Copy link
Member

Sometimes in a zone we reuse the same IP Addresses a lot, and CNAMEs are not always appropriate, it would be nice to be able to define the ip once, and then use the variable against elsewhere.

This is probably a light-weight version of #24 but same-zone-only or so.

ShaneMcC added a commit to mydnshost/mydnshost-frontend that referenced this issue Aug 3, 2020
@ShaneMcC
Copy link
Member Author

ShaneMcC commented Aug 3, 2020

I'm not 100% sure if RRCLONE does what I wanted here originally, but it's probably close enough.

ShaneMcC added a commit that referenced this issue Aug 3, 2020
- hasNS checks should now resolve if the root domain has an RRCLONE record.
- RRCLONE contents can specify types to import, eg: '(A,AAAA) domain.com' would import only A and AAAA records not MX.
ShaneMcC added a commit that referenced this issue Aug 4, 2020
…records. (#50)

- Names beginning with $ will not be output to the zone file.
- RRCLONE records can point at these records to make use of them

Disabled RRCLONE records checking that the target exists, they will now just resolve to nothing if they do not.

Added "raw" export type to allow exporting zones as-is, including variable-named records and without RRCLONE records being expanded. (BIND import type will accept these records already)
@ShaneMcC
Copy link
Member Author

ShaneMcC commented Aug 4, 2020

This is probably now closer to what I wanted.

$name records get validated as normal so RRCLONE doesn't need to do any weird special validation of itself as it knows it will be cloning a valid record (if one exists).

@ShaneMcC ShaneMcC closed this as completed Aug 4, 2020
@ShaneMcC
Copy link
Member Author

TODO: RRCLONE Records should be properly documented somewhere.

@ShaneMcC ShaneMcC reopened this Mar 29, 2021
@ShaneMcC ShaneMcC changed the title DNS Variables DNS Variables (RRCLONE) Mar 29, 2021
@ShaneMcC
Copy link
Member Author

Some kind of documentation now exists: https://api.mydnshost.co.uk/1.0/docs/#header-rrclone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant