Host: Host

HostR Documentation

Host

Description

Host Class

Methods

Public methods


Method new()

Usage
Host$new(host_name, config = list())

Method name()

Usage
Host$name()

Method canonical()

Usage
Host$canonical()

Method munge()

Usage
Host$munge()

Method parse()

Usage
Host$parse(host)

Method parse_comment()

Usage
Host$parse_comment(host)

Method make_host_name()

Usage
Host$make_host_name(name)

Method fully_qualified_domain_name()

Usage
Host$fully_qualified_domain_name(host_part)

Method hosted_service()

Usage
Host$hosted_service()

Method find_provider()

Usage
Host$find_provider()

Method set_provider()

Usage
Host$set_provider(name, provider_config = list())

Method ip()

Usage
Host$ip()

Method ipv4()

Usage
Host$ipv4()

Method ipv6()

Usage
Host$ipv6()

Method matches()

Usage
Host$matches(rules)

Method registration_name_matches()

Usage
Host$registration_name_matches(rule)

Method tld_matches()

Usage
Host$tld_matches(rule)

Method provider_matches()

Usage
Host$provider_matches(rule)

Method domain_matches()

Usage
Host$domain_matches(rule)

Method ip_matches()

Usage
Host$ip_matches(cidr)

Method dns_enabled()

Usage
Host$dns_enabled()

Method dns_a_record()

Usage
Host$dns_a_record()

Method exchangers()

Usage
Host$exchangers()

Method valid()

Usage
Host$valid(rules = list())

Method fail()

Usage
Host$fail()

Method valid_dns()

Usage
Host$valid_dns()

Method valid_mx()

Usage
Host$valid_mx()

Method valid_format()

Usage
Host$valid_format()

Method valid_ip()

Usage
Host$valid_ip()

Method localhost()

Usage
Host$localhost(x)

Method connect()

Usage
Host$connect()

Method clone()

The objects of this class are cloneable with this method.

Usage
Host$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## Not run: 
x <- Host$new("example.com")
x
x$host_name
x$domain_name
x$registration_name
x$tld
x$valid()
# x$munge()
x$error
x$error_message
x$ip_address
x$config$config

x <- Host$new("gmail.com", config = list(dns_lookup = "off"))
x$config$config$dns_lookup
x$valid()

x <- Host$new("gmail.com")
x
x$valid()
x$fail()

x <- Host$new("gm ail.com")
x
x$valid()
x$fail()

x <- Host$new("user1")
x$domain_name
x$dns_name
x$registration_name

## End(Not run)

ropenscilabs/addressable documentation built on Sept. 13, 2022, 11:32 p.m.