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.15 date: 2022/10/17 08:40:22
user: stefan
file: NameResolver.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


no warranty; provided AS-IS
code ported from squeak

copyright

COPYRIGHT (c) 2006 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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: #('fritz.box')
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
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: #('fritz.box')
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
NameResolver default addressesByName: 'xmpp.exept.de'
NameResolver default addressesByName: 'squeak.org'
NameResolver default addressesByName: 'www.web.de'
NameResolver default addressesByName: 'www.google.com'
NameResolver default addressesByName: 'xxx.fasel'

o  mailExchangerFor: domain
Example (put the address of a name server):
NameResolver default servers: #('fritz.box')
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
NameResolver default mailExchangerFor: 'squeak.org'
NameResolver default mailExchangerFor: 'web.de'

o  mailExchangersFor: domain
Example (put the address of a name server):
NameResolver default servers: #('fritz.box')
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
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: #('fritz.box')
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
NameResolver default nameServersFor: 'squeak.org'
NameResolver default nameServersFor: 'web.de'

o  reverseLookup: address

o  serverFor: domain
Example (put the address of a name server):
NameResolver default servers: #('fritz.box')
NameResolver default servers: #([192 168 23 1])
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
NameResolver default serverFor: '_xmpp-client._tcp.exept.de'

o  serversFor: domain
Example (put the address of a name server):
NameResolver default servers: #('fritz.box')
NameResolver default servers: #([172 23 1 216])
NameResolver default servers: #([8 8 8 8]).
NameResolver default serversFor: '_xmpp-server._tcp.exept.de'.
NameResolver default serversFor: '_xmpp-client._tcp.exept.de'.
NameResolver default serversFor: '_xmpp-client._tcp.google.com'

resolving-private
o  request: aDNSMessage

o  sendRequest: aDNSMessage

o  sendRequest: request server: server

testing
o  hasServer


Examples:


NameResolver default servers: #( [192 168 23 1] ).
NameResolver default servers: #( [172 23 1 216] ).
NameResolver default servers: #( 'exeptn.bh.exept.de' ).
NameResolver default servers: #( 'fritz.box' ).
NameResolver default addressByName: 'imap.exept.de'.
NameResolver default addressByName: 'google.com'.
NameResolver default addressesByName: 'google.com'.
NameResolver default addressByName: 'x2xxxxxxxxxxxxxxxxxxxx.org'
NameResolver default addressByName: 'ipv6.google.com'


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:26:46 GMT