On 09/21/2012 10:29 AM, Martin Kosek wrote:
On 09/20/2012 10:35 PM, Sigbjorn Lie wrote:

I see that I can add hosts with either an IPv4 or an IPv6 address when using
"ipa host-add --ip-address=".

Is there a way to add a host specifying both an IPv4 and an IPv6 address at the
same time?

Adding the --ip-address option twice yells this error:

ipa: ERROR: invalid 'ip_address': Only one value is allowed

Hello Signbjorn,

Unfortunately, host-add only accepts one IP address to be specified for the
given host. But allowing more addresses is a reasonable request, I filed an
upstream ticket:

Until the ticket is addresses, you can manually add host IP addresses via
dnsrecord-add command:

# ipa host-add foo.example.com --ip-address
Added host "foo.example.com"
   Host name: foo.example.com
   Principal name: host/foo.example....@idm.lab.bos.redhat.com
   Password: False
   Keytab: False
   Managed by: foo.example.com
# ipa dnsrecord-add example.com foo --a-rec= --a-create-reverse
   Record name: foo
   A record:,
# ipa dnsrecord-add example.com foo
--aaaa-rec=2620:52:0:104c:21a:4aff:fe10:4e06 --aaaa-create-reverse
   Record name: foo
   A record:,
   AAAA record: 2620:52:0:104c:21a:4aff:fe10:4e06
# host foo.example.com
foo.example.com has address
foo.example.com has address
foo.example.com has IPv6 address 2620:52:0:104c:21a:4aff:fe10:4e06


Thank you. I know of the dnsrecord-add options, however I was looking for a way to do it during host-add. Less typing. :)


Freeipa-users mailing list

Reply via email to