unioslo / unioslo/mreg-cli

No TTL in `host cname_show`

Open
#151 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Python
Stars
2
Forks
7
Avg merge
6d 11h
Merged PRs (30d)
2

Description

It is impossible to display the TTL of a CNAME, as far as I can tell... (?)

host info will display TTL of A-record.

host cname_show only display the target of the CNAME.

IMO host cname_show should display the TTL as well.

https://github.com/unioslo/mreg-cli/blob/5e6bda69f1b36818139a215164dc4997373484ce/mreg_cli/host.py#L426-L428

https://github.com/unioslo/mreg-cli/blob/5e6bda69f1b36818139a215164dc4997373484ce/mreg_cli/host.py#L1386-L1429

PS.
You are able to set the TTL with host set_ttl <cname> <ttl>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in mreg_cli/host.py at the referenced host cname_show implementation and compare it with the host info behavior that displays an A-record TTL. Check the related host.py command section around lines 1386-1429. Done means host cname_show displays the CNAME target and its TTL, including values set through host set_ttl.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.