Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svenvc/neodns

Experimental in-image DNS implementation for Pharo
https://github.com/svenvc/neodns

dns networking pharo

Last synced: 15 days ago
JSON representation

Experimental in-image DNS implementation for Pharo

Awesome Lists containing this project

README

        

# NeoDNS
Experimental in-image DNS implementation for Pharo.

[![CI](https://github.com/svenvc/NeoDNS/actions/workflows/CI.yml/badge.svg)](https://github.com/svenvc/NeoDNS/actions/workflows/CI.yml)

There are two DNS clients, **NeoSimplifiedDNSClient** and **NeoDNSClient** using the same interface but different implementations, see their class comments for more information.

Additionally, there is **NeoNetworkState** that uses a simple DNS operation to maintain whether we have an operational network.

## Usage
```Smalltalk
NeoSimplifiedDNSClient default addressForName: 'stfx.eu'.
NeoSimplifiedDNSClient new useMulticastDNS; addressForName: 'zappy.local'.

NeoDNSClient default addressForName: 'stfx.eu'.
NeoDNSClient default nameForAddress: #[46 137 113 215] asSocketAddress.

NeoNetworkState default hasInternetConnection.
NeoNetworkState default ensureInternetConnection.

NeoNetworkState default airplaneMode.
NeoNetworkState default airplaneMode: true.
NeoNetworkState default airplaneMode: false.
```

## References
https://en.wikipedia.org/wiki/DomainNameSystem

## Message code copied from
http://www.smalltalkhub.com/#!/~BenComan/DNS/

MIT License