[Pdns-users] API to add additional IP to an existing hostname
Kevin P. Fleming
kevin at km6g.us
Wed Nov 25 11:08:16 UTC 2020
There is no API to modify the existing set of records, it can only be
replaced or deleted. In order to do what you need you'll need to
obtain the current rrset for the name/type combo, make your changes,
and then send the new rrset.
On Wed, Nov 25, 2020 at 4:39 AM Rudy Setiawan via Pdns-users
<pdns-users at mailman.powerdns.com> wrote:
>
> Hi there,
>
> Currently the powerdns has an 'A' record of a hostname, let's say:
> app.test.com in A 1.1.1.1
>
> I wanted to add another IP into app.test.com , how can I do that?
>
> I tried to send the rrsets something like this:
>
>> "rrsets": [
>> {
>> "name": "app.test.com.",
>> "type": "A",
>> "changetype": "REPLACE",
>> "ttl": 600,
>> "records": [
>> {
>> "content": "2.2.2.2",
>> "disabled": false,
>> "type": "A",
>> "priority": 0
>> }
>> ]
>> }
>> ]
>
>
> It will just overwrite the old entry, is there another way or another changetype to add the same hostname with different IP?
>
> Thank you
>
> Regards,
> Rudy
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
More information about the Pdns-users
mailing list