Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Resolving Domains for Authentication

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
yakkob



Joined: 01 Jul 2008
Posts: 8
Location: Boston

PostPosted: Tue Jul 01, 2008 9:23 pm    Post subject: Resolving Domains for Authentication Reply with quote

Hello,
I recently tried to implement URL authentication into one of my mountpoints. The error.log file tells me that it cannot resolve the domain name I'm trying to use for the authentication, however I can ping, trace, and use host to get information about this domain. How can I fix this?
Thanks,
Jake
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jul 01, 2008 9:47 pm    Post subject: Reply with quote

Usually when DNS works for your in the shell but does not within a running icecast, the cause has been because chroot has been attempted but not completed. name resolution usually involves system files which may not be available like /etc/resolv.conf or /etc/nsswich.conf or any of the libs that may be dynamically loaded.

For a specialized setup like auth, but should avoid any external factors that could slow or stall things, so if you use a chroot setup then go for a simple /etc/hosts lookup.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yakkob



Joined: 01 Jul 2008
Posts: 8
Location: Boston

PostPosted: Wed Jul 02, 2008 12:55 am    Post subject: Reply with quote

Adding the domain to my /etc/hosts file did not correct the problem. Are there any other solutions?
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jul 02, 2008 1:10 am    Post subject: Reply with quote

you disn't say whether you are using chroot or not. Without knowing your configuration then little help can be given.

If you use a chroot of /home/icecast then the hosts file would be in /home/icecast/etc/hosts but you have not confirmed your setup as of yet.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yakkob



Joined: 01 Jul 2008
Posts: 8
Location: Boston

PostPosted: Wed Jul 02, 2008 2:05 am    Post subject: Reply with quote

Sorry Smile Yes i do use a chroot. I'll give that a try.
Back to top
View user's profile Send private message Visit poster's website
yakkob



Joined: 01 Jul 2008
Posts: 8
Location: Boston

PostPosted: Wed Jul 02, 2008 2:13 am    Post subject: Reply with quote

That didn't work either. I copied the entire /etc/hosts file to /home/icecast/etc/hosts.
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jul 02, 2008 3:12 am    Post subject: Reply with quote

Based on your responses so far, I'm guessing you are a novice to chroot jails. I would suggest you either read up on them including how the resolver works (nss etc) or go with the much easier option of not using a chroot jail.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber