Hello fedora lovers,
I trying to find the package for installation => command nslookup in Fedora 32?
Thank you, Rodrigo
Hello fedora lovers,
I trying to find the package for installation => command nslookup in Fedora 32?
Thank you, Rodrigo
sudo dnf provides nslookup
Then install the resulting package.
alciregi THANK YOU!!!
Working as expected ;).
If all you want to do is find out the IP address of a hostname, you can also use the getent command. It comes with the glibc-common package which is installed on all systems by default, so it should always be available.
Usage example:
[user@host ~]$ getent hosts discussion.fedoraproject.org
2001:470:1:791::15 askfedora.hosted-by-discourse.com discussion.fedoraproject.org
[user@host ~]$ getent ahostsv4 discussion.fedoraproject.org
72.52.80.15 STREAM askfedora.hosted-by-discourse.com
72.52.80.15 DGRAM
72.52.80.15 RAW
[user@host ~]$ nslookup discussion.fedoraproject.org
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
discussion.fedoraproject.org canonical name = askfedora.hosted-by-discourse.com.
Name: askfedora.hosted-by-discourse.com
Address: 72.52.80.15
Name: askfedora.hosted-by-discourse.com
Address: 2001:470:1:791::15
Also check out the dig and host commands provided by the bind-utils package along with nslookup.
An alternative way:
sudo systemctl --now enable systemd-resolved.service
resolvectl query example.org
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.