This is a collection of Domains that you have registered in Linode’s DNS Manager. Linode is not a registrar, and in order for these to work you must own the domains and point your registrar at Linode’s nameservers.
LinodeClient linodeClient =newLinodeClient("apikey");// Get AllList<Domain> list =awaitlinodeClient.Domain.Get();
Get a Domain
This is a single Domain that you have registered in Linode’s DNS Manager. Linode is not a registrar, and in order for this Domain record to work you must own the domain and point your registrar at Linode’s nameservers.
Adds a new Domain to Linode’s DNS Manager. Linode is not a registrar, and you must own the domain before adding it here. Be sure to point your registrar to Linode’s nameservers so that the records hosted here are used.
LinodeClient linodeClient =newLinodeClient("apikey");// Set domain propertiesDomain domain =newDomain{ Domains ="anydomain.com", Type =DomainType.master, SoaEmail ="ljchuello@gmail.com", Description ="Example domain add", RefreshSec =60, RetrySec =60, ExpireSec =60, TtlSec =30, Status =DomainStatus.active, Group ="Group Example"};// Createdomain =awaitlinodeClient.Domain.Create(domain);
Update Domain
Update information about a Domain in Linode’s DNS Manager.
LinodeClient linodeClient =newLinodeClient("apikey");// GetDomain domain =awaitlinodeClient.Domain.Get(2872671);// Change domain propertiesdomain.Description="new descrption";domain.TtlSec=200;domain.RetrySec=120;domain.ExpireSec=300;// Any other property can be changed// Updatedomain =awaitlinodeClient.Domain.Update(domain);
Delete Domain
Deletes a Domain from Linode’s DNS Manager. The Domain will be removed from Linode’s nameservers shortly after this operation completes. This also deletes all associated Domain Records.
LinodeClient linodeClient =newLinodeClient("apikey");long domainId =2872671;// GetDomain domain =awaitlinodeClient.Domain.Get(domainId);// You can delete it by passing the object as a parameterawaitlinodeClient.Domain.Delete(domain);// You can also delete it by passing the ID as a parameter.awaitlinodeClient.Domain.Delete(2872671);