termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

Package request: bind9

Open lkollenberger opened this issue 6 years ago • 4 comments

Please add this package. It would be really nice to use my old phone as a DNS server. Thanks!

lkollenberger avatar Mar 15 '18 15:03 lkollenberger

@lkollenberger bind and bind-tools work in Termux and are available on device through Arch Linux in Termux PRoot today:

pacman -S bind bind-tools
resolving dependencies...
looking for conflicting packages...

Packages (7) geoip-1.6.11-1  geoip-database-20180306-1  icu-60.2-1  idnkit-1.0-3
             libxml2-2.9.8-1  bind-9.12.0-1  bind-tools-9.12.0-1

Total Download Size:   12.44 MiB
Total Installed Size:  55.88 MiB

:: Proceed with installation? [Y/n]

10094 24192 0.7 0.7 461268 14304 ? Ssl 16:25 0:00 named

More information at https://sdrausty.github.io/TermuxArch/docs/install :musical_score: :notes:

SDRausty avatar Mar 15 '18 16:03 SDRausty

This probably belongs to termux-root-packages coz you can hardly use a port other than 53 for DNS?

tomty89 avatar Mar 15 '18 17:03 tomty89

@tomty89 Bind does support listening on other ports, which you can then query with nslookup -port=1053 or dig -p 1053. It won't be as useful as when run on port 53, but it can still be used to test config files for example. Or you can run nginx as root and translate the port of a non-root bind. Or you can use external network devices to reroute dns traffic to the correct port on termux.

Neo-Oli avatar Mar 15 '18 19:03 Neo-Oli

If this is still relevant, I compiled this program for aarch64 myself. For correct operation, you need to install all deb files in this release:

https://github.com/Ryufuze/termux_bind-9/releases/tag/Bind-9

Ryufuze avatar Oct 10 '22 16:10 Ryufuze

In addition to the above, adding bind9 would also be useful to allow the inclusion of the bind9-utils package, for utils such as dnssec-keygen for local DNSKEY & KEY pair generation under termux.

adam-burns avatar Jul 24 '23 08:07 adam-burns