Replies: 20 comments
-
BTW.... I was able to get hold of the binary dig in a quick and dirty way Then I compiled the firmware without the bind package and installed it on a fritzbox. Alas, the bind package doesn't include host
I would really like to have this more elegantly. The host.c package is still part of the used bind package. Could someone help me integrate host.c from the bind package as standalone tool in an elegant way?? |
Beta Was this translation helpful? Give feedback.
-
Without really knowing what I'm doing I patched the files freetz-ng/make/pkgs/bind/external.files cat ~/freetz-ng/make/pkgs/bind/external.files
diff make/pkgs/bind/external.in ../freetz-ng-fresh/make/pkgs/bind/external.in
grep -A999 FREETZ_PACKAGE_BIND_DIG ~/freetz-ng/make/pkgs/bind/Config.in
With make menuconfig I then got this I did a compile and I received those 2 binaries host and dig Again I copied them to ~/freetz-ng/make/pkgs/package/files/root/usr/bin Now I have both "dig" and "host" on my fritzboxes.... I would really like to have those without this workaround of installing bind. host isn't working properly, though
|
Beta Was this translation helpful? Give feedback.
-
I can use nslookup on a Fritz!box. I decided to write a small wrapper which gets rid of the runtime error message. cat /usr/bin/host
I also preserved the error state in case it's something else than this runtime error. Even if it's merely to get those binaries dig and host without the kitchen sink (named). |
Beta Was this translation helpful? Give feedback.
-
I dont understand the problem, im using "dig" since a long time but unbound as a resolver |
Beta Was this translation helpful? Give feedback.
-
I've explained this. what always happens is that I type "host" and then see it doesn't work and then I type nslookup which works. Furthermore dig is only selectable if I check "bind". Maybe you can only make it possible to have host and dig without bind? |
Beta Was this translation helpful? Give feedback.
-
Why dont you do it like i do since a long time? Seems this is for the wishlist |
Beta Was this translation helpful? Give feedback.
-
When you added a command "x" and this command does not what you expected, i see 1 options:
but first you should bumpo it to the latest version: https://freetz-ng.github.io/freetz-ng/SUPPORT.html#package-bump |
Beta Was this translation helpful? Give feedback.
-
It's all there in this thread if you read it. I wrote it while I was working on it. I would think at least some people are interested in dig without the named package. host was never part of Freetz. host is part of the bind package and so is dig dig can be had by selecting the bind package. I changed some lines so I can get host. It turns out it throws a runtime error I can't solve. |
Beta Was this translation helpful? Give feedback.
-
Bump to the latest version and check if the problem with host still exists. |
Beta Was this translation helpful? Give feedback.
-
I gave up with patching the bind package and trying to get 'host' to work on the FB. I wrote a wrapper in bash around 'nslookup' which should give a valid response if you feed it the same info as 'host' Don't treat it as an official host package. nslookup has to accept options, so enable NSLOOKUP_BIG
cat /usr/bin/host
|
Beta Was this translation helpful? Give feedback.
-
I found out that the busybox nslookup doesn't behave properly anymore after enabling "BIG" with FREETZ_BUSYBOX___V136_FEATURE_NSLOOKUP_BIG=y The vanilla nslookup doesn't accept options like q=txt, but is solid with giving a usable answer. When you call nslookup without querying a specific type of record, it doesn't give me an IPv6 address and it throws an error
Without the "BIG" option, the nslookup command is pretty useless. host yahoo.com
|
Beta Was this translation helpful? Give feedback.
-
I dont use this Busybox applet. If it is buggy ask Busybox |
Beta Was this translation helpful? Give feedback.
-
What do you mean "for me it works"? Still, that version threw an error. I have no clue why it doesn't throw that same error on yours. I did tests with a complete vanilla .config and a fresh clone of freetz-ng master yesterday. Would you care to explain how you got "host" on your box. Maybe you are using a different package? The "buginess" of nslookup is well known for some years. I do not have hope it will be fixed. It seems it's used in some docker and they have the same problem. Anyhow... In my wrapper I wrote around it and it now behaves exactly the same as the original host package.
Not after the script is written... |
Beta Was this translation helpful? Give feedback.
-
I've added it and it works. I dont know what you bug is, maybe ive not searched enough |
Beta Was this translation helpful? Give feedback.
-
I have no idea how that's possible. It then comes with this runtime error on the fritzbox.
|
Beta Was this translation helpful? Give feedback.
-
ive no idea what youve done |
Beta Was this translation helpful? Give feedback.
-
There is no host when I check the bind package. |
Beta Was this translation helpful? Give feedback.
-
Sure, you did not create a push-request. Or missed i something? |
Beta Was this translation helpful? Give feedback.
-
Busybox abandoned Bugzilla, I think, so now I have applied to the busybox' mailing list. I have no idea what the busybox nslookup wants to do after resolving the A-records. I've never seen any output of nslookup after giving the records. I'm using "host" at least 10 times a day. |
Beta Was this translation helpful? Give feedback.
-
I noticed you modified the bind package 2 days ago. I gave it another try, but I'm still getting the same runtime error.
Because I already have a solution with my wrapper around busybox' nslookup and because a firmware with that wrapper uses much less memory (4 MB difference), I am sticking with the wrapper. I honestly appreciate the effort you have put into it and I do understand you want to solve it without such a wrapper.
The one with the bind package is 43 MB and the one with the wrapper script is 39 MB. The wrapper:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
I work on many different linux machines and my "muscle memory" starts typing "host" whenever I want to find out the IP of a certain hostname or the IP to get its reverse DNS.
I know it is missing on the Freetz distribution and occasionally I check if I can install it.
I also know the command is deprecated and I should really use another tool, but so is ifconfig (I should us ip) and other tools which I regularly use in bash scripts.
AFAIK it's not part of busybox and it's supposed to be a supporting tool of bind.
So is dig
The bind package can be installed, but I will also have named, which I don't need.
Anyhow it seems it doesn't include host anyway,
I could install it to get the tool dig
Can host be added to packages?
Do you know of another way beside a wrapper around nslookup to get rid of the annoyance of not having host?
I can write a simple wrapper in bash, I think.
Is it hard to get the "dig" binary as a separate tool?
Beta Was this translation helpful? Give feedback.
All reactions