How do I add nslookup to yum?
I am trying to setup a CentOS server, and have had some difficulty in getting DNS to work properly.
I have tried dnsmasq and it works fine on my local machine. When I ssh into the server I can access DNS fine. However when I do yum update and yum update-alternatives there are no DNS results. I have added the yum repositories to /etc/yum.d/ and I have also added nslookup to /etc/rc. I have also tried manually adding /usr/sbin/nslookup in /etc/rc.local and that does not work either.
On my local machine, using the command yum update I get the following results: That's because CentOS is old enough (2.6) to still use the libc functions.
In newer distros there is a daemon called dnsmasq that handles all DNS queries for you. You could always install that and stop using /etc/rc.
I have installed yum and yum-plugin-fastestmirror from the centos 5.4 iso. And it didn't seem to work.
Any ideas?
Related Answers
How to install nslookup command in CentOS 7?
I mean to check the hostname, ip address. k1l...
What is the Linux version of nslookup?
Nslookup. nslookup is a command-line tool for querying the n...
How do I get nslookup on Linux?
Nslookup has a slew of different query modes that you can us...