PDA

View Full Version : dig command?


lemuelj
2004-11-27, 10:08 AM
If I log in via ssh and run dig as the admin it works, however if I login as a user on my server the dig function doesn't work, get the following error message

-bash-2.05b$ dig tejas-computers.net
dig: error while loading shared libraries: libdns.so.11: cannot open shared object file: No such file or directory

obviously there are some shared libraries missing at the user level, is this by design? I am using the ensim control panel to set up my sites on a power server.

Lem

Tino Didriksen
2004-11-27, 10:24 AM
"-bash-2.05b$" would indicate that the various environment variables were not set, so you might be missing some from the path.

Try logging in as them with su user --login. And check if they even have a .bash_profile and .bashrc in their ~/.

Anyways, I have no trouble using dig as a regular user on my RH9 server, nor on the FC1 UML I have running on it.

lemuelj
2004-11-27, 15:05 PM
Thanks, but I am still a novice here

I logged in an su'ed to a user account and got the following

bash-2.05b$ ls
bin dev home lib opt root tmp var
boot etc initrd mnt proc sbin usr
bash-2.05b$ cd ~/
bash-2.05b$ ls
mail mainwebsite_cgi mainwebsite_html
bash-2.05b$

In which of these directories should I see the files .bash_profile and .bashrc .

edogg
2004-11-27, 15:16 PM
You'd need to do ls -a to see the hidden dot files.

lemuelj
2004-11-27, 16:04 PM
Thanks edogg and Tino ,

I can see the files now, I opened them in vi and compared to files on the server that I moving from where the dig worked, and I could see no difference in the files at all.

I also looked in the user/lib on my new server and the old server, on the old server I found files similiar to the one that is not found

they are
libdns.so.5
libdns.so.5.3.0

on the new server, the error is that

libdns.so.11

cannot be found and this file is not in the user/lib directory. Is this something that I am going to have to submit a ticket to serverbeach to get it fixed?

Thanks

Lem