Reply

Web API: Create host with DNS-Record

HMokhtari
Techie
Posts: 6
2806     0

Hi,

I tried it with record:host and this parameter  
{"ipv4addrs":[{{"configure_for_dhcp": false, "ipv4addr": "123.123.123.123"}}], "name": "hostname.domanin.com", "configure_for_dns": true}

but i got the error
{ "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:Host records cannot be added to the zone domain.com while Microsoft servers are configured for the zone.)",
  "code": "Client.Ibap.Data.Conflict",
  "text": "Host records cannot be added to the zone domain.com while Microsoft servers are configured for the zone."
}

Have someone an idee. how i can resolve it?

Thanks a lot

 

solved :-)

HMokhtari
Techie
Posts: 6
2807     0

solved :-)
as first call record:host {"ipv4addrs":[{{"configure_for_dhcp": false, "ipv4addr": "123.123.123.123"}}], "name": "hostname.domanin.com", "configure_for_dns": true}
then call record:a {"name": "hostname.domanin.com", "ipv4addr": "123.123.123.123"}
 

sorry, this the right syntax

HMokhtari
Techie
Posts: 6
2807     0

sorry, this the right syntax :-)
as first call record:host {"ipv4addrs":[{"configure_for_dhcp": false, "ipv4addr": "123.123.123.123"}], "name": "hostname.domanin.com", "configure_for_dns": false}
then call record:a {"name": "hostname.domanin.com", "ipv4addr": "123.123.123.123"}

Showing results for 
Search instead for 
Do you mean 

Recommended for You