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

ttl_set reports "OK: : updated TTL" on cnames where nothing is done #247

Open
vidarsk opened this issue May 29, 2024 · 1 comment
Open

Comments

@vidarsk
Copy link

vidarsk commented May 29, 2024

When using ttl_set on a cname, it gives misleading output:

mreg> host ttl_set www.sv.c-rex.uio.no 600
OK: : updated TTL to 600 for www.sv.c-rex.uio.no
mreg> host info www.sv.c-rex.uio.no
www.sv.c-rex.uio.no is a CNAME for itfds-crexshinyprod.uio.no
...
TTL:          (Default)

I would expect the command to give an error message in this case.

@terjekv
Copy link
Collaborator

terjekv commented May 29, 2024

This behaviour is changed during the migration to pydantic (#214). In this branch the CNAME will be resolved as follows:

mreg-test.uio.no> host info login.math.uio.no
login.math.uio.no is a CNAME for europa.uio.no
Name:         europa.uio.no
[...]
mreg-test.uio.no> host ttl_set login.math.uio.no 600
OK: : Set TTL for europa.uio.no to 600.
login.math.uio.no is a CNAME for europa.uio.no

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

2 participants