On 09/20/2012 10:35 PM, Sigbjorn Lie wrote: > Hi, > > 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 > > > > Regards, > Siggi
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: https://fedorahosted.org/freeipa/ticket/3101 Until the ticket is addresses, you can manually add host IP addresses via dnsrecord-add command: # ipa host-add foo.example.com --ip-address 10.16.78.101 ---------------------------- 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=10.16.78.111 --a-create-reverse Record name: foo A record: 10.16.78.101, 10.16.78.111 # ipa dnsrecord-add example.com foo --aaaa-rec=2620:52:0:104c:21a:4aff:fe10:4e06 --aaaa-create-reverse Record name: foo A record: 10.16.78.101, 10.16.78.111 AAAA record: 2620:52:0:104c:21a:4aff:fe10:4e06 # host foo.example.com foo.example.com has address 10.16.78.111 foo.example.com has address 10.16.78.101 foo.example.com has IPv6 address 2620:52:0:104c:21a:4aff:fe10:4e06 HTH, Martin _______________________________________________ Freeipa-users mailing list Freeipa-users@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-users