2
0
mirror of https://github.com/Revertron/Alfis synced 2024-11-12 19:10:48 +00:00
Go to file
2021-11-29 19:46:06 +01:00
.cargo Added new configuration for cross-platform compilation. 2021-04-17 00:08:07 +02:00
.github Updates CI config. 2021-10-22 11:59:50 +02:00
contrib Fixed build generation script. 2021-09-16 19:44:06 +02:00
docs Added first FAQ section. Incremented version. 2021-04-14 22:49:22 +02:00
img Added alfis_icon192.png. 2021-06-08 16:18:14 +02:00
src Changed the way how DNS-server start error is handled. Now ALFIS starts normally, and the error is shown in GUI. 2021-11-20 16:11:05 +01:00
tests Replaced test DB with a new one, fixed tests. 2021-05-14 14:34:03 +02:00
.gitignore Added a restriction for IANA domain zones. Users cannot mine them from now on. 2021-03-11 01:41:19 +01:00
adblock.txt Implemented hosts-file support. You can resolve local names or block ads on DNS level! 2021-04-01 20:59:52 +02:00
alfis.toml Fixed OPT record forwarding. 2021-09-09 18:18:03 +02:00
build.rs Removed all external zones. 2021-05-02 16:02:14 +02:00
Cargo.lock Bump serde_json from 1.0.71 to 1.0.72 2021-11-29 03:05:34 +00:00
Cargo.toml Bump serde_json from 1.0.71 to 1.0.72 2021-11-29 03:05:34 +00:00
LICENSE Added license file. 2021-02-16 18:40:19 +01:00
README.md Added contribution section to readme. 2021-11-07 14:45:36 +01:00
rustfmt.toml Code reformatting. 2021-06-09 20:36:36 +02:00
shell.nix add nix build shell 2021-05-14 01:06:46 -07:00

Alfis

Builds

Alternative Free Identity System

This project represents a minimal blockchain without cryptocurrency, capable of sustaining any number of domain names in a bunch of original alternative zones. Not so clear? Hold on.

This software provides:

  • Very small and peer-to-peer synchronized database of domain names. The consistency of this database is based on blockchain technology, that prevents retroactive changing of data, and has strict cryptographical consensus.
  • DNS server with cache, like you have in your Internet-router. It resolves the domains from database and forwards all regular DNS-requests to some other resolver - your router, Google DNS, Cloudflare DNS, or AdGuard DNS (if you want to block ads and trackers).
  • Other systems need you to organize and run several DNS-servers to resolve their domains and regular domains, we have both in one. Moreover, ALFIS can forward requests of regular domains to DNS-over-HTTPS server. The security and privacy is right here.
  • Convenient graphical user interface to create domains in this alternative domain system. If you want just to use it like a DNS-server you can run it with -n flag or just build/download the variant without GUI.

Screenshot

Screenshot

Screenshot

How it works?

Every node connects to its siblings and synchronizes the domain database. This DB consists of cryptographically bound blocks, that contain encrypted domain names, contacts, and some info, if you wish. There are 10 domain zones available to get domain in: .anon, .btn, .conf, .index, .merch, .mirror, .mob, .screen, .srv, .ygg. But, .anon and .ygg are bound to have IP-addresses from Yggdrasil Network only.

Building and running

On every OS

You can download and run already built binaries from releases, or you can build project yourself.

You can build Alfis by issuing cargo build --release and cargo run --release commands in a directory of cloned repository.

Windows Logo On Windows

You don't need any additional steps to build Alfis, just stick to the MSVC version of Rust.

If you see an error about missing VCRUNTIME140.dll when running alfis you will need to install VC Redistributable from Microsoft.

If you want to use modern browser engine from Edge instead of old from IE, you need to build with this command: cargo build --release --features "edge" (or use corresponding build from releases).

Windows Logo On Windows (MINGW64)

If you'd rather use Gnu version of Rust you can build Alfis by these steps:

pacman -S git mingw64/mingw-w64-x86_64-rust mingw64/mingw-w64-x86_64-cargo-c
git clone https://github.com/Revertron/Alfis.git
cd Alfis
cargo build

Linux Logo On Linux

If you are building on Linux you must ensure that you have libwebkitgtk library installed. You can do it by issuing this command: sudo apt install libwebkit2gtk-4.0-dev (on Debian/Ubuntu and derivatives).

Arch Linux Logo On Arch Linux

Install from available AUR package created by @pztrn:

yay -S alfis

Gentoo Logo On Gentoo Linux

Available in dm9pZCAq overlay

eselect repository enable dm9pZCAq
emerge --sync dm9pZCAq
emerge net-dns/alfis

NixOS Logo On Nix/NixOS

nix-shell in this repo and then run cargo build --release and cargo install after you have entered the shell.

Installation

Debian/Ubuntu (only blockchain DNS, without GUI)

If you want to just use ALFIS as a DNS daemon and resolve domains in blockchain, as well as clearnet domains. You just need to install alfis service from repo and change your resolver in /etc/resolv.conf. Beware of NetworkManager, it can change your resolvers at will.

  1. Download repository public key and add it to your APT
wget -qO - https://deb.revertron.com/key.txt | sudo apt-key add -
  1. Add repository path to sources list
echo 'deb https://deb.revertron.com/ debian alfis' | sudo tee /etc/apt/sources.list.d/alfis.list
  1. Update packages and install ALFIS
sudo apt update && sudo apt install alfis
  1. Enable and start the service
systemctl enable --now alfis

After that configuration is in file /etc/alfis.conf and data is saved to /var/lib/alfis. If you have some DNS server bound to port 53, it will not properly start. Deal with it on your own.

GUI version Windows/Linux/macOS (if you want to create and change domains)

If you want to create and manage your own domains on blockchain, you will need a version with GUI. You can download it from releases section, choose appropriate OS and architecture version. It needs to be without nogui suffix.

Just unzip that archive in some directory and run alfis (or alfis.exe) binary. By default, it searches for config file, named alfis.toml in current working directory, and creates/changes blockchain.db file in the same directory. If you want it to load config from another file you can command it so: alfis -c /etc/alfis.conf.

Roadmap

  1. Stabilize blockchain functions (domain transfer, info & contacts in UI), bug hunting and fixing.
  2. Change DNS server/proxy to own resource saving implementation (using trust-dns-proto for RR parsing).
  3. P2P traffic encryption (ECDH).
  4. Web-GUI to manage you node from browser.

Remarkable contributions

  • @umasterov contributed fantastic logo for this project.