C# Class Bespoke.DynamicDnsUpdater.Client.DynamicDnsClientBase

Show file Open project: dmarchelya/BespokeDynamicDnsUpdater Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
HostnamesToList ( string hostnames ) : List

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

Method Details

HasIpAddresssChanged() public method

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.
return bool

HostnamesToList() protected static method

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

InitializeLastUpdateIpAddresses() public method

public InitializeLastUpdateIpAddresses ( ) : void
return void

InitializeLastUpdateIpAddresses() public method

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.
return void

IsValidIpAddress() public method

public IsValidIpAddress ( string ipAddress ) : bool
ipAddress string
return bool

UpdateHostname() public method

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.
return bool

UpdateHostname() public abstract method

public abstract UpdateHostname ( string hostname, string ipAddress ) : bool
hostname string
ipAddress string
return bool

UpdateHostnames() public method

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.
return bool

UpdateHostnames() public method

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.
return bool

UpdateHostnames() public method

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.
return bool

UpdateHostnames() public method

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.
return bool