( search forums )
freebsd, chroot, gethostbyname
Soldat Forums - Server Talk - Server Help
johnny O.o`
June 7, 2006, 11:18 am
hi everyone..

i'm trying to run soldat dedicated server on freebsd in chroot-ed enviroment, but i've encountred some problems width nss

server is not able to lookup hostname... (it looks somewhat like this)
. . .
Exception raised while sending
Registering server @ lobby.soldatserver.com
. . .

already tried to mirror *entire* compat/linux enviroment into chrooted env, but widthout success <_<

i've faked it with static ips in lobby_list for now, but i'm not sure if its not contraproductive (dont know how lobby servers works.. if it its httpd with namebased-virtualhosting-thingie than i'm fscked up :p)

first time running something width LBC under chrooted enviroment.. so any help/advice would be appreciated ^^;
tx

edit: btw, server src would be nice present imo... ;]
why not make it OSS?

Deleted User
June 7, 2006, 11:47 am
One of my old shell servers had this prob, had nothing to do with Soldat though...
Check your /etc/nsswitch.conf and make sure there's a
hosts: files dns
line in there

If all else fails, look up the program called 'named'

Also, using IP's rather than the lobby DNS addresses isnt really a problem, they are all static I guess, since they havent changed for the past... ever?

 Quote:Originally posted by johnny O.o`hi everyone..
edit: btw, server src would be nice present imo... ;]

Not going to happen.

SERIAL KILLeR
June 7, 2006, 11:58 am
Hasn't the lobby.soldatserver.com stopped or something.

Because I saw that the lobby has been removed in the lobby_servers.txt on the latest (2.5.0) dedicated server.

johnny O.o`
June 7, 2006, 12:00 pm
 Quote:Originally posted by EnEsCeO
Check your /etc/nsswitch.conf and make sure there's a
hosts: files dns

been there, done that..
also tried to add static entries into hosts file - result still same ^^


 Quote:If all else fails, look up the program called 'named'
already running bind ^^;


 Quote:Also, using IP's rather than the lobby DNS addresses isnt really a problem, they are all static I guess, since they havent changed for the past... ever?
happy to know that...
dynamic ip's arent problem at all (script's already doing lookup before entering chroot)
i was afraid of namebased vhosts.. but whatever :]

tx for help

johnny O.o`
June 7, 2006, 12:05 pm
 Quote:Originally posted by SERIAL KILLeRHasn't the lobby.soldatserver.com stopped or something.

Because I saw that the lobby has been removed in the lobby_servers.txt on the latest (2.5.0) dedicated server.

yup, it's not in 2.5.0 (was testing on old version. just updated)...
but its same for all servers :p