eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'NameResolver':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: NameResolver


Inheritance:

   Object
   |
   +--NameResolver

Package:
stx:goodies/communication
Category:
Net-Communication-DNS
Version:
rev: 1.9 date: 2017/01/23 23:58:01
user: cg
file: NameResolver.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


no warranty; provided AS-IS
code ported from squeak


Class protocol:

accessing
o  default

constants
o  connectionTimeout


Instance protocol:

accessing
o  servers

o  servers: aCollection

resolving
o  addressByName: hostName
Example (put the address of a name server):
NameResolver default servers: #((192 168 0 1))
NameResolver default servers: #((193 141 12 216))
NameResolver default addressByName: 'squeak.org'
NameResolver default addressByName: 'www.web.de'
NameResolver default addressByName: 'xxx.fasel'
NameResolver default addressByName: 'x234rtzoifjelfvljjg.de'

o  addressesByName: hostName
Example (put the address of a name server):
NameResolver default servers: #((192 168 0 1))
NameResolver default servers: #((193 141 12 216))
NameResolver default addressesByName: 'squeak.org'
NameResolver default addressesByName: 'www.web.de'
NameResolver default addressesByName: 'google.com'
NameResolver default addressesByName: 'xxx.fasel'

o  mailExchangerFor: domain
Example (put the address of a name server):
NameResolver default servers: #((192 168 0 1))
NameResolver default servers: #((193 141 12 193))
NameResolver default mailExchangerFor: 'squeak.org'
NameResolver default mailExchangerFor: 'web.de'

o  mailExchangersFor: domain
Example (put the address of a name server):
NameResolver default servers: #((192 168 0 1))
NameResolver default servers: #((193 141 12 193))
NameResolver default mailExchangersFor: 'squeak.org'
NameResolver default mailExchangersFor: 'web.de'
NameResolver default mailExchangersFor: 'exept.de'
NameResolver default mailExchangersFor: 'xxxx.exept.de'
NameResolver default mailExchangersFor: 'xxxx.fasel'

o  nameServersFor: domain
Example (put the address of a name server):
NameResolver default servers: #((192 168 0 1))
NameResolver default servers: #((193 141 12 193))
NameResolver default nameServersFor: 'squeak.org'
NameResolver default nameServersFor: 'web.de'

o  reverseLookup: address

resolving-private
o  request: aDNSMessage

o  sendRequest: aDNSMessage

o  sendRequest: request server: server


Examples:


NameResolver default servers: #( [192 168 23 1] ). NameResolver default servers: #( [193 141 12 216] ). NameResolver default addressByName: 'imap.exept.de'. NameResolver default addressByName: 'google.com'. NameResolver default addressByName: 'x2xxxxxxxxxxxxxxxxxxxx.org' NameResolver default addressByName: 'ipv6.google.com'

ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 19 Sep 2018 09:07:04 GMT