C# Class Bespoke.DynamicDnsUpdater.Client.DynamicDnsClientBase

Afficher le fichier Open project: dmarchelya/BespokeDynamicDnsUpdater Class Usage Examples

Méthodes publiques

Méthode Description
HasIpAddresssChanged ( string hostname, string ipAddress ) : bool

Checks if the given IP Address has changed from the last update.

InitializeLastUpdateIpAddresses ( ) : void
InitializeLastUpdateIpAddresses ( string hostnames ) : void

Initialize the LastUpdateIpAddresses collection with the current IP Address (in DNS) for each of the given hostnames. This can be used when the client is run for the first time, when we don't have a record of what the previous IP Address was that was sent to DNS-O-Matic. This way we won't have to attempt to update the IP Address, if the current DNS entry matches the current IP Address.

IsValidIpAddress ( string ipAddress ) : bool
UpdateHostname ( string hostname ) : bool

Updates the specified hostname via DNS-O-Matic with the public facing IP Address for the system that the request is made from.

UpdateHostname ( string hostname, string ipAddress ) : bool
UpdateHostnames ( List hostnames ) : bool

Updates the specified hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.

UpdateHostnames ( List hostnames, string ipAddress ) : bool

Updates the specified hostnames via DNS-O-Matic with the IP Address that is specified.

UpdateHostnames ( string hostnames ) : bool

Updates the given hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.

UpdateHostnames ( string hostnames, string ipAddress ) : bool

Updates the given hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.

Méthodes protégées

Méthode Description
HostnamesToList ( string hostnames ) : List

Takes a comma seperated string of hostnames and converts it to a List of hostnames.

Method Details

HasIpAddresssChanged() public méthode

Checks if the given IP Address has changed from the last update.
public HasIpAddresssChanged ( string hostname, string ipAddress ) : bool
hostname string The hostname that we are checking for an update.
ipAddress string The current IP Address.
Résultat bool

HostnamesToList() protected static méthode

Takes a comma seperated string of hostnames and converts it to a List of hostnames.
protected static HostnamesToList ( string hostnames ) : List
hostnames string
Résultat List

InitializeLastUpdateIpAddresses() public méthode

public InitializeLastUpdateIpAddresses ( ) : void
Résultat void

InitializeLastUpdateIpAddresses() public méthode

Initialize the LastUpdateIpAddresses collection with the current IP Address (in DNS) for each of the given hostnames. This can be used when the client is run for the first time, when we don't have a record of what the previous IP Address was that was sent to DNS-O-Matic. This way we won't have to attempt to update the IP Address, if the current DNS entry matches the current IP Address.
public InitializeLastUpdateIpAddresses ( string hostnames ) : void
hostnames string The hostnames to update.
Résultat void

IsValidIpAddress() public méthode

public IsValidIpAddress ( string ipAddress ) : bool
ipAddress string
Résultat bool

UpdateHostname() public méthode

Updates the specified hostname via DNS-O-Matic with the public facing IP Address for the system that the request is made from.
public UpdateHostname ( string hostname ) : bool
hostname string The hostname to update.
Résultat bool

UpdateHostname() public abstract méthode

public abstract UpdateHostname ( string hostname, string ipAddress ) : bool
hostname string
ipAddress string
Résultat bool

UpdateHostnames() public méthode

Updates the specified hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.
public UpdateHostnames ( List hostnames ) : bool
hostnames List The hostnames to update.
Résultat bool

UpdateHostnames() public méthode

Updates the specified hostnames via DNS-O-Matic with the IP Address that is specified.
public UpdateHostnames ( List hostnames, string ipAddress ) : bool
hostnames List The hostnames to update.
ipAddress string The IP Address to update to.
Résultat bool

UpdateHostnames() public méthode

Updates the given hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.
public UpdateHostnames ( string hostnames ) : bool
hostnames string A comma delimited list of hostnames to update.
Résultat bool

UpdateHostnames() public méthode

Updates the given hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.
public UpdateHostnames ( string hostnames, string ipAddress ) : bool
hostnames string A comma delimited list of hostnames to update.
ipAddress string The IP Address to update to.
Résultat bool