Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-16 Thread Martin Kosek
On Thu, 2011-12-15 at 19:09 -0500, Adam Young wrote: > On 12/14/2011 04:41 PM, Martin Kosek wrote: ... > > > In CLI it may look like this: > > # ipa dnsrecordmx-show example.com @ --structured > >Record name: @ > > Record type: MX > > Data: 0 server1.example.com > > Preference:

Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-15 Thread Endi Sukma Dewata
On 12/15/2011 4:03 PM, Martin Kosek wrote: If we use the raw data, it should be specified as an option instead of an argument: ipa dnsrecord-mod ZONE NAME --type=mx \ --rec-data="10 server1.example.com." --new-preference=20 I was also thinking about using current param "--mx-rec":

Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-15 Thread Adam Young
On 12/14/2011 04:41 PM, Martin Kosek wrote: Hello all, we just had a good discussion with Rob and Endi about different approach to the new DNS API. Current DNS API proposal (patches 174-176) introduced new API based on different commands, e.g. for MX RR type: ipa dnsrecord-mx-add ZONE NAME --pr

Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-15 Thread Martin Kosek
On Thu, 2011-12-15 at 15:20 -0600, Endi Sukma Dewata wrote: > On 12/14/2011 3:41 PM, Martin Kosek wrote: > > ipa dnsrecord-mod ZONE NAME VALUE? --type=mx --preference=0 > > ipa dnsrecord-del ZONE NAME --type=mx --preference=0 > > --exchanger=server1.example.com. Thanks for comments Endi! Please,

Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-15 Thread Endi Sukma Dewata
On 12/14/2011 3:41 PM, Martin Kosek wrote: ipa dnsrecord-mod ZONE NAME VALUE? --type=mx --preference=0 ipa dnsrecord-del ZONE NAME --type=mx --preference=0 --exchanger=server1.example.com. I think the mod & del commands should use the same way to specify the existing data. If we use the raw

Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-15 Thread Martin Kosek
On Wed, 2011-12-14 at 17:01 -0500, Dmitri Pal wrote: > On 12/14/2011 04:41 PM, Martin Kosek wrote: ... > > > > In CLI it may look like this: > > # ipa dnsrecordmx-show example.com @ --structured > > dnsrecordmx? I assume it is a typo, right? Right. All new options specific for supported DNS RR ty

Re: [Freeipa-users] Optionistic approach for new DNS API

2011-12-14 Thread Dmitri Pal
On 12/14/2011 04:41 PM, Martin Kosek wrote: > Hello all, > > we just had a good discussion with Rob and Endi about different approach > to the new DNS API. Current DNS API proposal (patches 174-176) > introduced new API based on different commands, e.g. for MX RR type: > > ipa dnsrecord-mx-add ZONE

[Freeipa-users] Optionistic approach for new DNS API

2011-12-14 Thread Martin Kosek
Hello all, we just had a good discussion with Rob and Endi about different approach to the new DNS API. Current DNS API proposal (patches 174-176) introduced new API based on different commands, e.g. for MX RR type: ipa dnsrecord-mx-add ZONE NAME --preference=0 --exchanger=server1.example.com. ip