Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/svenvc/neodns
- Owner: svenvc
- Created: 2019-03-28T10:03:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T13:02:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T08:41:50.088Z (2 months ago)
- Topics: dns, networking, pharo
- Language: Smalltalk
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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