#4232 dnsrecord-* with absolute target gives error
Closed: Fixed None Opened 8 years ago by rmeggins.

For example:

$ ipa dnsrecord-add testdomain.com. testdomain.com. --mx-rec="5 mx.testdomain.com."
ipa: ERROR: invalid 'name': empty DNS label

It is complaining about the second "testdomain.com.".

The workaround is to use a "@" (for the domain itself) or a relative name e.g.

$ ipa dnsrecord-add testdomain.com. @ --mx-rec="5 mx.testdomain.com."
# testdomain.com. MX 5 mx.testdomain.com.
$ ipa dnsrecord-add testdomain.com. subdomain --mx-rec="5 mx.testdomain.com."
# subdomain.testdomain.com. MX 5 mx.testdomain.com.

This can be fixed in one batch #3148 - it touches the same place in the code.

This ticket is not complete yet, moving to next month milestone.

Will be fixed by patches for #3169.

Fixed by #3169. Additionally, a test was added:

  • c123d95 Test DNS: dnsrecord-* zone.test. zone.test. should work

Metadata Update from @rmeggins:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.0 - 2014/06

5 years ago

Login to comment on this ticket.

Metadata