A DNS alternative system with support for encrypted DNS protocols and ad blocklist. A package that combine connman, dnsmasq and DNSCrypt-proxy into one comprehensive DNS system.
REQUIREMENTS:
- for aarch64 phone a CHUM repository should be enabled to install a 64 bits dnsmasq package.
- for armv7hl phone a birdzhang openrepos repository should be enabled to install a 32 bits dnsmasq package.
Use for SFOS >=4.5. This package requires and installs DNSCrypt-proxy and DNScrypt-proxy blocklist packages as well.
Configuration files:
/etc/dnsmasq.d/dnscrypt-proxy.conf - enables dnsmasq as DNS server (@127.0.0.1) and redirects requests for external names to dnscrypt-proxy (@127.0.0.53) /etc/dnsmasq.d/dns-cache.conf - enables DNS cache for dnsmasq /etc/systemd/system/connman.service.d/override.conf - disables /etc/resolv.conf management in Connman /etc/tmpfiles.d/connman_resolv.conf - makes symlink /etc/resolv.conf -> /var/lib/dnsmasq/resolv.conf edit: it is relinking of /etc/resolv.conf after a phone reboot /var/lib/dnsmasq/resolv.conf - sets a DNS server to 127.0.0.1(ln -s /etc/resolv.conf var/lib/dnsmasq/resolv.conf)/var/lib/dnscrypt-proxy/dnscrypt-proxy.toml.dnsmasq - after renaming to .toml changes IP addres of dnscrypt-proxy server to 127.0.0.53 ( edit dnscrypt-proxy.toml for configuration of dnscrypt-proxy )/etc/systemd/system/dnscrypt-proxy.service.d/override.conf - override dnscrypt-proxy with config for work with dns-alternative /var/lib/harbour-dns-alternative/dnscrypt-proxy.toml - config for dnscrypt-proxy service /var/lib/dnscrypt-proxy/dnscrypt-blocklist-names.txt - list of blocked domains (edit&remove line with domain you want to unblock) /usr/local/bin/fix_dns_and_restore_to_default.sh
Uninstalling a DNS alternative, DNSCrypt-proxy and DNScrypt-proxy blocklist packages reverts default DNS service as well.
Emergency manual recovery procedure: rm -f /var/lib/environment/connman/nodnsproxy.conf rm -f /etc/systemd/system/connman.service.d/override.conf systemctl stop dnsmasq systemctl disable dnsmasq systemctl restart connman
That package should set DNS and /etc/hosts usage for AlienDalvik as well.
If there are troubles with uninstalling: touch /etc/resolv.conf echo '1.1.1.1' > /etc/resolv.conf and reinstall the package.
A dnsmasq-2.86 from CHUM is broken for armv7hl. Please, install dnsmasq-2.76 from a birdzhang openrepos repository instead. A 'dnsmasq.service' file is installed if missing.
Bear in mind that this package is intendet for advanced users.
Attachment | Size | Date |
---|---|---|
harbour-dns-alternative-0.9-6.noarch.rpm | 31.58 KB | 25/02/2023 - 22:13 |
harbour-dns-alternative-0.9-8.noarch.rpm | 32.15 KB | 01/03/2023 - 19:50 |
harbour-dns-alternative-0.9-9.noarch.rpm | 33.08 KB | 17/02/2024 - 19:47 |
* Sat Feb 17 2024 kan 0.9-9
- refactoring of config files according to dnscrypt-proxy-2.1.5-3 changes
* Wen Mar 01 2023 kan 0.9-8
- relinking /etc/resolv.conf
- adds dnsmasq.service if missing
* Sun Feb 25 2023 kan 0.9-6
- noarch compilation
- change /etc/resolv.conf management
* Tue Feb 21 2023 kan 0.9-5
- add missing requirement: dnscrypt-proxy-blacklist
* Mon Feb 20 2023 kan 0.9-4
- fix run issues
* Sun Feb 19 2023 kan 0.9-3
- fix uninstalling issue due to the missing /etc/resolv.conf
* Sun Feb 19 2023 kan 0.9
- first release to openrepos
Comments
fabio87
Fri, 2023/08/25 - 19:07
Permalink
I noticed two problems (maybe it's simply a behavior...) with it installed:
- In Sailfish settings -> account, one of Google mail required attention (I have to login to it again); clicked on it and as usual it showed a page with a message that it will open in browser and...it fails to recognize accounts.google.com address. It normally worked when I uninstalled DNS alternative & co.
- With WiFi tethering enabled my XBOX Series X seems to have problem. When XBOX was connected to my phone, if I test the network it showed me that there are local problem and that the DNS isn't able to recognize XBOX name server (phrase was in italian, I translate it to english)
kan
Fri, 2023/08/25 - 22:30
Permalink
I suppose that the reason is the same. The dnscrypt-proxy-blocklist is very strict. Antisocial list is included in it and it covers domains as google.com or microsoft.com as well. To exclude them you have to edit /var/lib/dnscrypt-proxy/dnscrypt-blocklist-names.txt and remove all google.com, gmail.com, microsoft.com an xbox related domains or edit "domains-blocklist.conf" file and generate a list for yourself.
fabio87
Wed, 2023/08/23 - 23:03
Permalink
Is also normal behavior that after DNS alternative installation the connection becomes really slow, compared to when it's not installed?
PS: if I unistall DNS alternative, the DNSmasq and dnscrypt-proxy remain installed, and I have to uninstall them manually. Is this as it should be?
kan
Thu, 2023/08/24 - 17:34
Permalink
It depend on definition of "really slow". dnscrypt-proxy uses encrypted connection to remote DNS server and it has influence on initial lag before connection but that is difference as 20ms vs 200ms max. That is barely noticeable for average user. Due to the fact that 'dnsmasq' is configured witn 'dnscache' that lag is valid only for the very first query of a domain.
You can determine dns query time using 'dig' command from 'bind-utils' package. For DNS alternative:
and compare it with the servers form your local dns system that you can find in /run/connman/resolv.conf
Yes. That suite is designed as modular and you can use 'dnscrypt-proxy' alone, or with 'dnscrypt-proxy-blocklist' or all three together hence you have to uninstall it manually.
fabio87
Mon, 2023/08/21 - 19:30
Permalink
Seems that was successfully installed, wasn't it? But the network didn't work anymore after the installation. It was needed to uninstall dnscrypt-proxy in order to make the network work again.
fabio87
Sun, 2023/08/20 - 23:10
Permalink
It was weird also for me when I read that strange error :D
What do you think about conflict of /usr/bin between dnscrypt-proxy and Yottagram? If you want I can uninstall this one and retry the installation of the dnscrypt-proxy.
fabio87
Tue, 2023/08/15 - 12:45
Permalink
I tried to install dnscrypt-proxy, but without success. It showed me same errors like the above (and obviously dnscrypt-proxy has not been installed)...strange
kan
Sat, 2023/08/19 - 15:08
Permalink
Could you download dnscrypt-proxy and run installation in terminal from command line:
and post logs? Ther should be seen where is the issue.
That is interesting for me what is going on.
fabio87
Sun, 2023/08/20 - 21:25
Permalink
ufdio: 1 reads, 19 total bytes in 0.000008 secs
ufdio: 1 reads, 17654 total bytes in 0.000035 secs
D: ============== ./dnscrypt-proxy-2.1.5-0.aarch64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:0x201
D: opening db index /var/lib/rpm/Packages 0x400 mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name 0x400 mode=0x0
D: opening db index /var/lib/rpm/Basenames 0x400 mode=0x0
D: opening db index /var/lib/rpm/Group 0x400 mode=0x0
D: opening db index /var/lib/rpm/Requirename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Providename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Obsoletename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Triggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Dirnames 0x400 mode=0x0
D: opening db index /var/lib/rpm/Installtid 0x400 mode=0x0
D: opening db index /var/lib/rpm/Sigmd5 0x400 mode=0x0
D: opening db index /var/lib/rpm/Sha1header 0x400 mode=0x0
D: opening db index /var/lib/rpm/Filetriggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Transfiletriggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Recommendname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Suggestname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Supplementname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Enhancename 0x400 mode=0x0
D: read h# 562
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-2f7da79c-5f7b0fd1 to keyring
D: added subkey 0 of main key gpg-pubkey-2f7da79c-5f7b0fd1 to keyring
D: read h# 758
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-76db038c-5f914913 to keyring
D: added subkey 0 of main key gpg-pubkey-76db038c-5f914913 to keyring
D: read h# 1117
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-4c2da98c-51de6d92 to keyring
D: added subkey 0 of main key gpg-pubkey-4c2da98c-51de6d92 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: ./dnscrypt-proxy-2.1.5-0.aarch64.rpm: Header SHA256 digest: OK
D: ./dnscrypt-proxy-2.1.5-0.aarch64.rpm: Header SHA1 digest: OK
ufdio: 6 reads, 10381 total bytes in 0.002448 secs
D: Plugin: calling hook init in ima plugin
D: Plugin: calling hook init in syslog plugin
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ dnscrypt-proxy-2.1.5-0 aarch64/linux 0x0
D: read h# 1488
Header V3 RSA/SHA256 Signature, ID chiave 47394f23: NOKEY
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Requires: /bin/sh SI (db files)
D: Requires: /bin/sh SI (cached)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 SI (rpmlib provides)
D: Requires: rpmlib(FileDigests) <= 4.6.0-1 SI (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 SI (rpmlib provides)
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, depth)
D: 0 0 0 1 +dnscrypt-proxy-2.1.5-0.aarch64
D: installing binary packages
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: opening db environment /var/lib/rpm cdb:0x201
D: opening db index /var/lib/rpm/Packages (none) mode=0x42
D: opening db index /var/lib/rpm/Name (none) mode=0x42
D: opening db index /var/lib/rpm/Basenames (none) mode=0x42
D: opening db index /var/lib/rpm/Group (none) mode=0x42
D: opening db index /var/lib/rpm/Requirename (none) mode=0x42
D: opening db index /var/lib/rpm/Providename (none) mode=0x42
D: opening db index /var/lib/rpm/Conflictname (none) mode=0x42
D: opening db index /var/lib/rpm/Obsoletename (none) mode=0x42
D: opening db index /var/lib/rpm/Triggername (none) mode=0x42
D: opening db index /var/lib/rpm/Dirnames (none) mode=0x42
D: opening db index /var/lib/rpm/Installtid (none) mode=0x42
D: opening db index /var/lib/rpm/Sigmd5 (none) mode=0x42
D: opening db index /var/lib/rpm/Sha1header (none) mode=0x42
D: opening db index /var/lib/rpm/Filetriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Transfiletriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Recommendname (none) mode=0x42
D: opening db index /var/lib/rpm/Suggestname (none) mode=0x42
D: opening db index /var/lib/rpm/Supplementname (none) mode=0x42
D: opening db index /var/lib/rpm/Enhancename (none) mode=0x42
D: sanity checking 1 elements
Verifying... ufdio: 128 reads, 3954358 total bytes in 0.007087 secs
########################################
D: Plugin: calling hook tsm_pre in syslog plugin
D: running pre-transaction scripts
D: computing 20 file fingerprints
Preparazione in corso... D: computing file dispositions
D: 0x0000fd00 4096 283607 239952 rotational:-1 /
########################################
D: Plugin: calling hook tsm_post in syslog plugin
il file /usr/bin dell'installazione di dnscrypt-proxy-2.1.5-0.aarch64 entra in conflitto con il file del pacchetto yottagram-0.4.1-1.aarch64
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: Exit status: 1
kan
Sun, 2023/08/20 - 22:27
Permalink
That
is crucial but now I need to find out why? These packages has nothing in common.
kan
Sun, 2023/08/20 - 23:14
Permalink
Try that package dnscrypt-proxy-test .
fabio87
Mon, 2023/08/21 - 00:29
Permalink
ufdio: 1 reads, 19 total bytes in 0.000058 secs
ufdio: 1 reads, 17654 total bytes in 0.000038 secs
D: ============== ./dnscrypt-proxy-test-0.0.0-1.aarch64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:0x201
D: opening db index /var/lib/rpm/Packages 0x400 mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name 0x400 mode=0x0
D: opening db index /var/lib/rpm/Basenames 0x400 mode=0x0
D: opening db index /var/lib/rpm/Group 0x400 mode=0x0
D: opening db index /var/lib/rpm/Requirename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Providename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Obsoletename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Triggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Dirnames 0x400 mode=0x0
D: opening db index /var/lib/rpm/Installtid 0x400 mode=0x0
D: opening db index /var/lib/rpm/Sigmd5 0x400 mode=0x0
D: opening db index /var/lib/rpm/Sha1header 0x400 mode=0x0
D: opening db index /var/lib/rpm/Filetriggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Transfiletriggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Recommendname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Suggestname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Supplementname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Enhancename 0x400 mode=0x0
D: read h# 562
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-2f7da79c-5f7b0fd1 to keyring
D: added subkey 0 of main key gpg-pubkey-2f7da79c-5f7b0fd1 to keyring
D: read h# 758
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-76db038c-5f914913 to keyring
D: added subkey 0 of main key gpg-pubkey-76db038c-5f914913 to keyring
D: read h# 1117
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-4c2da98c-51de6d92 to keyring
D: added subkey 0 of main key gpg-pubkey-4c2da98c-51de6d92 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: ./dnscrypt-proxy-test-0.0.0-1.aarch64.rpm: Header SHA256 digest: OK
D: ./dnscrypt-proxy-test-0.0.0-1.aarch64.rpm: Header SHA1 digest: OK
ufdio: 6 reads, 10757 total bytes in 0.000039 secs
D: Plugin: calling hook init in ima plugin
D: Plugin: calling hook init in syslog plugin
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ dnscrypt-proxy-2.1.5-1 aarch64/linux 0x0
D: read h# 1488
Header V3 RSA/SHA256 Signature, ID chiave 47394f23: NOKEY
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Requires: /bin/sh SI (db files)
D: Requires: /bin/sh SI (cached)
D: Requires: /bin/sh SI (cached)
D: Requires: /bin/sh SI (cached)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 SI (rpmlib provides)
D: Requires: rpmlib(FileDigests) <= 4.6.0-1 SI (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 SI (rpmlib provides)
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, depth)
D: 0 0 0 1 +dnscrypt-proxy-2.1.5-1.aarch64
D: installing binary packages
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: opening db environment /var/lib/rpm cdb:0x201
D: opening db index /var/lib/rpm/Packages (none) mode=0x42
D: opening db index /var/lib/rpm/Name (none) mode=0x42
D: opening db index /var/lib/rpm/Basenames (none) mode=0x42
D: opening db index /var/lib/rpm/Group (none) mode=0x42
D: opening db index /var/lib/rpm/Requirename (none) mode=0x42
D: opening db index /var/lib/rpm/Providename (none) mode=0x42
D: opening db index /var/lib/rpm/Conflictname (none) mode=0x42
D: opening db index /var/lib/rpm/Obsoletename (none) mode=0x42
D: opening db index /var/lib/rpm/Triggername (none) mode=0x42
D: opening db index /var/lib/rpm/Dirnames (none) mode=0x42
D: opening db index /var/lib/rpm/Installtid (none) mode=0x42
D: opening db index /var/lib/rpm/Sigmd5 (none) mode=0x42
D: opening db index /var/lib/rpm/Sha1header (none) mode=0x42
D: opening db index /var/lib/rpm/Filetriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Transfiletriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Recommendname (none) mode=0x42
D: opening db index /var/lib/rpm/Suggestname (none) mode=0x42
D: opening db index /var/lib/rpm/Supplementname (none) mode=0x42
D: opening db index /var/lib/rpm/Enhancename (none) mode=0x42
D: sanity checking 1 elements
Verifying... ufdio: 128 reads, 3954739 total bytes in 0.002733 secs
########################################
D: Plugin: calling hook tsm_pre in syslog plugin
D: running pre-transaction scripts
D: computing 20 file fingerprints
Preparazione in corso... D: computing file dispositions
D: 0x0000fd00 4096 283600 239945 rotational:-1 /
########################################
D: Plugin: calling hook tsm_post in syslog plugin
il file /usr/bin dell'installazione di dnscrypt-proxy-2.1.5-1.aarch64 entra in conflitto con il file del pacchetto yottagram-0.4.1-1.aarch64
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: Exit status: 1
kan
Mon, 2023/08/21 - 18:30
Permalink
Second attempt: dnscrypt-proxy
fabio87
Mon, 2023/08/21 - 19:24
Permalink
ufdio: 1 reads, 19 total bytes in 0.000011 secs
ufdio: 1 reads, 17654 total bytes in 0.001287 secs
D: ============== ./dnscrypt-proxy-0.0.0-2.aarch64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:0x201
D: opening db index /var/lib/rpm/Packages 0x400 mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name 0x400 mode=0x0
D: opening db index /var/lib/rpm/Basenames 0x400 mode=0x0
D: opening db index /var/lib/rpm/Group 0x400 mode=0x0
D: opening db index /var/lib/rpm/Requirename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Providename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Obsoletename 0x400 mode=0x0
D: opening db index /var/lib/rpm/Triggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Dirnames 0x400 mode=0x0
D: opening db index /var/lib/rpm/Installtid 0x400 mode=0x0
D: opening db index /var/lib/rpm/Sigmd5 0x400 mode=0x0
D: opening db index /var/lib/rpm/Sha1header 0x400 mode=0x0
D: opening db index /var/lib/rpm/Filetriggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Transfiletriggername 0x400 mode=0x0
D: opening db index /var/lib/rpm/Recommendname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Suggestname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Supplementname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Enhancename 0x400 mode=0x0
D: read h# 562
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-2f7da79c-5f7b0fd1 to keyring
D: added subkey 0 of main key gpg-pubkey-2f7da79c-5f7b0fd1 to keyring
D: read h# 758
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-76db038c-5f914913 to keyring
D: added subkey 0 of main key gpg-pubkey-76db038c-5f914913 to keyring
D: read h# 1117
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-4c2da98c-51de6d92 to keyring
D: added subkey 0 of main key gpg-pubkey-4c2da98c-51de6d92 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: ./dnscrypt-proxy-0.0.0-2.aarch64.rpm: Header SHA256 digest: OK
D: ./dnscrypt-proxy-0.0.0-2.aarch64.rpm: Header SHA1 digest: OK
ufdio: 6 reads, 10545 total bytes in 0.000028 secs
D: Plugin: calling hook init in ima plugin
D: Plugin: calling hook init in syslog plugin
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ dnscrypt-proxy-0.0.0-2 aarch64/linux 0x0
D: read h# 1488
Header V3 RSA/SHA256 Signature, ID chiave 47394f23: NOKEY
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Requires: /bin/sh SI (db files)
D: Requires: /bin/sh SI (cached)
D: Requires: /bin/sh SI (cached)
D: Requires: /bin/sh SI (cached)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 SI (rpmlib provides)
D: Requires: rpmlib(FileDigests) <= 4.6.0-1 SI (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 SI (rpmlib provides)
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, depth)
D: 0 0 0 1 +dnscrypt-proxy-0.0.0-2.aarch64
D: installing binary packages
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: opening db environment /var/lib/rpm cdb:0x201
D: opening db index /var/lib/rpm/Packages (none) mode=0x42
D: opening db index /var/lib/rpm/Name (none) mode=0x42
D: opening db index /var/lib/rpm/Basenames (none) mode=0x42
D: opening db index /var/lib/rpm/Group (none) mode=0x42
D: opening db index /var/lib/rpm/Requirename (none) mode=0x42
D: opening db index /var/lib/rpm/Providename (none) mode=0x42
D: opening db index /var/lib/rpm/Conflictname (none) mode=0x42
D: opening db index /var/lib/rpm/Obsoletename (none) mode=0x42
D: opening db index /var/lib/rpm/Triggername (none) mode=0x42
D: opening db index /var/lib/rpm/Dirnames (none) mode=0x42
D: opening db index /var/lib/rpm/Installtid (none) mode=0x42
D: opening db index /var/lib/rpm/Sigmd5 (none) mode=0x42
D: opening db index /var/lib/rpm/Sha1header (none) mode=0x42
D: opening db index /var/lib/rpm/Filetriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Transfiletriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Recommendname (none) mode=0x42
D: opening db index /var/lib/rpm/Suggestname (none) mode=0x42
D: opening db index /var/lib/rpm/Supplementname (none) mode=0x42
D: opening db index /var/lib/rpm/Enhancename (none) mode=0x42
D: sanity checking 1 elements
Verifying... ufdio: 128 reads, 3954480 total bytes in 0.003641 secs
########################################
D: Plugin: calling hook tsm_pre in syslog plugin
D: running pre-transaction scripts
D: computing 17 file fingerprints
Preparazione in corso... D: computing file dispositions
D: 0x0000fd00 4096 283600 239945 rotational:-1 /
########################################
D: ========== +++ dnscrypt-proxy-0.0.0-2 aarch64-linux 0x0
D: dnscrypt-proxy-0.0.0-2.aarch64: Header SHA256 digest: OK
D: dnscrypt-proxy-0.0.0-2.aarch64: Header SHA1 digest: OK
D: install: dnscrypt-proxy-0.0.0-2.aarch64 has 17 files
D: %prein(dnscrypt-proxy-0.0.0-2.aarch64): scriptlet start
fdio: 2 writes, 150 total bytes in 0.000059 secs
D: %prein(dnscrypt-proxy-0.0.0-2.aarch64): execv(/bin/sh) pid 7969
D: Plugin: calling hook scriptlet_fork_post in prioreset plugin
+ '[' -e /etc/systemd/system/dnscrypt-proxy.service ']'
+ systemctl stop dnscrypt-proxy
+ rm -f /etc/systemd/system/dnscrypt-proxy.service
D: %prein(dnscrypt-proxy-0.0.0-2.aarch64): waitpid(7969) rc 7969 status 0
D: Plugin: calling hook scriptlet_post in syslog plugin
Aggiornamento / installazinone...
dnscrypt-proxy-0.0.0-2 D: ========== Directories not explicitly included in package:
D: 0 /usr/bin/
D: 1 /usr/share/doc/
D: 3 /usr/share/licenses/
D: 5 /var/lib/dnscrypt-proxy/
D: 6 /var/lib/environment/connman/
D: ==========
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: /var/lib/environment/connman directory created with perms 0755
D: create 100755 1 ( 0, 0)10371320 /usr/bin/dnscrypt-proxy;64e38bc4
########################################
ufdio: 317 writes, 10371320 total bytes in 0.011471 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 040755 1 ( 0, 0) 0 /usr/share/doc/dnscrypt-proxy-0.0.0
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 772 /usr/share/doc/dnscrypt-proxy-0.0.0/LICENSE;64e38bc4
ufdio: 1 writes, 772 total bytes in 0.000009 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 040755 1 ( 0, 0) 0 /usr/share/licenses/dnscrypt-proxy-0.0.0
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 772 /usr/share/licenses/dnscrypt-proxy-0.0.0/LICENSE;64e38bc4
ufdio: 1 writes, 772 total bytes in 0.000007 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 28412 /var/lib/dnscrypt-proxy/dnscrypt-proxy.toml.dnscrypt-proxy;64e38bc4
ufdio: 1 writes, 28412 total bytes in 0.000028 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 165 /var/lib/dnscrypt-proxy/example-allowed-ips.txt;64e38bc4
ufdio: 1 writes, 165 total bytes in 0.000006 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 985 /var/lib/dnscrypt-proxy/example-allowed-names.txt;64e38bc4
ufdio: 1 writes, 985 total bytes in 0.000010 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 471 /var/lib/dnscrypt-proxy/example-blocked-ips.txt;64e38bc4
ufdio: 1 writes, 471 total bytes in 0.000009 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 1039 /var/lib/dnscrypt-proxy/example-blocked-names.txt;64e38bc4
ufdio: 1 writes, 1039 total bytes in 0.000006 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 1654 /var/lib/dnscrypt-proxy/example-captive-portals.txt;64e38bc4
ufdio: 1 writes, 1654 total bytes in 0.000007 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 1550 /var/lib/dnscrypt-proxy/example-cloaking-rules.txt;64e38bc4
ufdio: 1 writes, 1550 total bytes in 0.000006 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 28738 /var/lib/dnscrypt-proxy/example-dnscrypt-proxy.toml;64e38bc4
ufdio: 1 writes, 28738 total bytes in 0.000027 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 1252 /var/lib/dnscrypt-proxy/example-forwarding-rules.txt;64e38bc4
ufdio: 1 writes, 1252 total bytes in 0.000006 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 2807 /var/lib/dnscrypt-proxy/localhost.pem;64e38bc4
ufdio: 1 writes, 2807 total bytes in 0.000010 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 51 /var/lib/dnscrypt-proxy/resolv.conf;64e38bc4
ufdio: 1 writes, 51 total bytes in 0.000007 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
D: create 100644 1 ( 0, 0) 25 /var/lib/environment/connman/nodnsproxy.conf;64e38bc4
ufdio: 1 writes, 25 total bytes in 0.000006 secs
D: Plugin: calling hook fsm_file_prepare in ima plugin
fdio: 409 reads, 10442840 total bytes in 0.065291 secs
D: adding "dnscrypt-proxy" to Name index.
D: adding 17 entries to Basenames index.
D: adding "System Environment/Daemons" to Group index.
D: adding 7 entries to Requirename index.
D: adding 2 entries to Providename index.
D: adding 7 entries to Dirnames index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "94b18d4fa74f391b1986ee07b9c3574cd7860174" to Sha1header index.
D: %post(dnscrypt-proxy-0.0.0-2.aarch64): scriptlet start
fdio: 2 writes, 1019 total bytes in 0.000014 secs
D: %post(dnscrypt-proxy-0.0.0-2.aarch64): execv(/bin/sh) pid 7972
D: Plugin: calling hook scriptlet_fork_post in prioreset plugin
+ '[' '!' -f /var/lib/dnsmasq/resolv.conf ']'
+ rm -f /etc/resolv.conf
+ ln -s /var/lib/dnscrypt-proxy/resolv.conf /etc/resolv.conf
+ '[' '!' -f /var/lib/dnscrypt-proxy/dnscrypt-proxy.toml ']'
+ '[' -f /var/lib/dnscrypt-proxy/dnscrypt-proxy.toml.block ']'
+ '[' -f /var/lib/dnscrypt-proxy/dnscrypt-proxy.toml.dnsmasq ']'
+ /usr/bin/dnscrypt-proxy -service install -config /var/lib/dnscrypt-proxy/dnscrypt-proxy.toml
[2023-08-21 18:07:33] [NOTICE] Installed as a service. Use `-service start` to start
+ systemctl daemon-reload
+ systemctl restart connman
+ systemctl start dnscrypt-proxy
D: %post(dnscrypt-proxy-0.0.0-2.aarch64): waitpid(7972) rc 7972 status 0
D: Plugin: calling hook scriptlet_post in syslog plugin
D: Plugin: calling hook psm_post in syslog plugin
ufdio: 6 reads, 10545 total bytes in 0.000020 secs
D: running post-transaction scripts
D: read h# 1688
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Plugin: calling hook psm_post in syslog plugin
D: Plugin: calling hook tsm_post in syslog plugin
D: syncing fs /
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: Exit status: 0
kan
Mon, 2023/08/21 - 19:39
Permalink
So, it looks like it is already installed.
fabio87
Mon, 2023/08/21 - 19:53
Permalink
In the meantime, android network seems that was broken (Sailfish part can connect but Android App Support didn't). It was needed to shut down and power on the phone again to make it works again.
kan
Mon, 2023/08/21 - 19:56
Permalink
Yes, that's normal behaviour. I have updated dnscrypt-proxy.
fabio87
Sun, 2023/08/20 - 18:15
Permalink
How can I collect the rpm installation log file, in order to share it?
kan
Sun, 2023/08/20 - 20:44
Permalink
You can try:
bear in mind that it is on line command where there is a 'space' between (.. &> /home/.. )
fabio87
Sun, 2023/08/20 - 21:17
Permalink
Ok, I'll send it soon. (Before, when I tried, I forgot the "&" in the command and thus it didn't work :D )
fabio87
Mon, 2023/08/07 - 11:06
Permalink
I'm on Xperia 10 III and SFOS 4.5.0.21, I've CHUM correctly installed and running and this is the first installation of DNS Alternative. The error showed is:
Subprocess failed. Error: RPM failed: /var/tmp/rpm.tmp.1r7pzC: line 3: /usr/bin/dnscrypt-proxy: No such file or directory
error: %prein(dnscrypt-proxy-2.1.4-9.aarch64) scriptlet failed, exit status 127
error: dnscrypt-proxy-2.1.4-9.aarch64: install failed
kan
Fri, 2023/08/11 - 17:55
Permalink
Thank you for report. That is strange, could you try to install:
dnscrypt-proxy
first?
fabio87
Sat, 2023/08/12 - 22:35
Permalink
Of course, I'll try.
nerd7473
Mon, 2023/02/27 - 01:26
Permalink
There seems to be issues installing on 4.5.0.18
kan
Mon, 2023/02/27 - 18:40
Permalink
What kind of issues? Have you got CHUM installed? First install or update?