C# Class Bespoke.DynamicDnsUpdater.Client.IpAddressResolver

Show file Open project: dmarchelya/BespokeDynamicDnsUpdater Class Usage Examples

Public Methods

Method Description
GetIpAddressForHostname ( string hostname ) : string

Submits a dns request for the given hostname and returns the IP address that it resolves to.

GetPublicIpAddress ( ) : string
GetPublicIpAddressFromDnsOMatic ( ) : string

Retrieve the public IP address from DNS-O-Matic at http://myip.dnsomatic.com/

GetPublicIpAddressFromDynDns ( ) : string

Get the public IP Address from DynDns at: http://checkip.dyndns.org/

Method Details

GetIpAddressForHostname() public method

Submits a dns request for the given hostname and returns the IP address that it resolves to.
public GetIpAddressForHostname ( string hostname ) : string
hostname string The hostname to get an IP address for.
return string

GetPublicIpAddress() public method

public GetPublicIpAddress ( ) : string
return string

GetPublicIpAddressFromDnsOMatic() public method

Retrieve the public IP address from DNS-O-Matic at http://myip.dnsomatic.com/
public GetPublicIpAddressFromDnsOMatic ( ) : string
return string

GetPublicIpAddressFromDynDns() public method

Get the public IP Address from DynDns at: http://checkip.dyndns.org/
public GetPublicIpAddressFromDynDns ( ) : string
return string