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:
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1108202
Metadata Update from @rmeggins: - Issue assigned to mbasti - Issue set to the milestone: FreeIPA 4.0 - 2014/06
Login to comment on this ticket.