struct

ECS::LogEntry::Dns::Question

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new

Initialize all values as nil

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

class(new_value : String)

A chainable setter for class

Source
class

dns.question.class

The class of records being queried.

Level: Extended Type: Keyword Example:

IN
Source
class=(class __arg0 : String | Nil)

dns.question.class

The class of records being queried.

Level: Extended Type: Keyword Example:

IN
Source
name(new_value : String)

A chainable setter for name

Source
name

dns.question.name

The name being queried.

If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively.

Level: Extended Type: Keyword Example:

www.google.com
Source
name=(name : String | Nil)

dns.question.name

The name being queried.

If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively.

Level: Extended Type: Keyword Example:

www.google.com
Source
registered_domain(new_value : String)

A chainable setter for registered_domain

Source
registered_domain

dns.question.registered_domain

The highest registered domain, stripped of the subdomain.

For example, the registered domain for "foo.google.com" is "google.com".

This value can be determined precisely with a list like the public suffix list (http://publicsuffix.org). Trying to approximate this by simply taking the last two labels will not work well for TLDs such as "co.uk".

Level: Extended Type: Keyword Example:

google.com
Source
registered_domain=(registered_domain : String | Nil)

dns.question.registered_domain

The highest registered domain, stripped of the subdomain.

For example, the registered domain for "foo.google.com" is "google.com".

This value can be determined precisely with a list like the public suffix list (http://publicsuffix.org). Trying to approximate this by simply taking the last two labels will not work well for TLDs such as "co.uk".

Level: Extended Type: Keyword Example:

google.com
Source
subdomain(new_value : String)

A chainable setter for subdomain

Source
subdomain

dns.question.subdomain

The subdomain is all of the labels under the registered_domain.

If the domain has multiple levels of subdomain, such as "sub2.sub1.example.com", the subdomain field should contain "sub2.sub1", with no trailing period.

Level: Extended Type: Keyword Example:

www
Source
subdomain=(subdomain : String | Nil)

dns.question.subdomain

The subdomain is all of the labels under the registered_domain.

If the domain has multiple levels of subdomain, such as "sub2.sub1.example.com", the subdomain field should contain "sub2.sub1", with no trailing period.

Level: Extended Type: Keyword Example:

www
Source
top_level_domain(new_value : String)

A chainable setter for top_level_domain

Source
top_level_domain

dns.question.top_level_domain

The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for google.com is "com".

This value can be determined precisely with a list like the public suffix list (http://publicsuffix.org). Trying to approximate this by simply taking the last label will not work well for effective TLDs such as "co.uk".

Level: Extended Type: Keyword Example:

co.uk
Source
top_level_domain=(top_level_domain : String | Nil)

dns.question.top_level_domain

The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for google.com is "com".

This value can be determined precisely with a list like the public suffix list (http://publicsuffix.org). Trying to approximate this by simply taking the last label will not work well for effective TLDs such as "co.uk".

Level: Extended Type: Keyword Example:

co.uk
Source
type(new_value : String)

A chainable setter for type

Source
type

dns.question.type

The type of record being queried.

Level: Extended Type: Keyword Example:

AAAA
Source
type=(type : String | Nil)

dns.question.type

The type of record being queried.

Level: Extended Type: Keyword Example:

AAAA
Source