[Freeipa-users] ipa host-add having both an IPv4 and an IPv6 address

Sigbjorn Lie sigbjorn at nixtra.com
Fri Sep 21 17:56:38 UTC 2012


On 09/21/2012 10:29 AM, Martin Kosek wrote:
> 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.com at 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


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



Regards,
Siggi




More information about the Freeipa-users mailing list