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 

Couldn't resolve host 'dir.xiph.org'

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



Joined: 24 Jul 2007
Posts: 54
Location: Lawrence, KS

PostPosted: Thu Sep 13, 2007 6:41 pm    Post subject: Couldn't resolve host 'dir.xiph.org' Reply with quote

Hello, I'm having some difficult being listed in the Icecast.org YP directory. I do have curl installed and it's devel. I've read other posts mentioning that a chroot jail may be the culprit on this issue. I am using a chroot jail. However I see this in the error.log:

First this:

[2007-09-13 17:50:28] DBUG yp/yp_add Adding /mountpoint to http://dir.xiph.org/cgi-bin/yp-cgi
[2007-09-13 17:50:28] DBUG yp/yp_add Adding /mountpoint to http://www.oddsock.org/cgi-bin/yp-cgi

Then this:

[2007-09-13 17:50:29] DBUG yp/add_pending_yp 1 YP entries added to http://dir.xiph.org/cgi-bin/yp-cgi
[2007-09-13 17:50:29] DBUG yp/add_pending_yp 1 YP entries added to http://www.oddsock.org/cgi-bin/yp-cgi

Finally this:

[2007-09-13 18:34:43] EROR yp/send_to_yp connection to http://dir.xiph.org/cgi-bin/yp-cgi failed with "Couldn't resolve host 'dir.xiph.org'"
[2007-09-13 18:34:43] EROR yp/send_to_yp connection to http://www.oddsock.org/cgi-bin/yp-cgi failed with "Couldn't resolve host 'www.oddsock.org'"

How do I work around this problem? Also is oddsock dead? Should I just take that out of my <directory> tags?
_________________
Seth Cole (Google+) (@rockhost)
[ROCKHOST.COM, Inc. - "Established Y2K1"]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
rockhost



Joined: 24 Jul 2007
Posts: 54
Location: Lawrence, KS

PostPosted: Thu Sep 13, 2007 6:55 pm    Post subject: Reply with quote

Alright, now without the Chroot security I see this:

[2007-09-13 13:52:42] DBUG yp/send_to_yp YP touch at http://dir.xiph.org/cgi-bin/yp-cgi succeeded

So I think I'm golden, right? Well I still can NOT search and find myself in the Icecast.org YP directory. What's up?
_________________
Seth Cole (Google+) (@rockhost)
[ROCKHOST.COM, Inc. - "Established Y2K1"]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
rockhost



Joined: 24 Jul 2007
Posts: 54
Location: Lawrence, KS

PostPosted: Thu Sep 13, 2007 7:20 pm    Post subject: Reply with quote

Ha ha, well I guess I'm talking to myself here. But hell with it, it's working. I realize now that a listener must be connected for the station to appear in the Icecast.org YP dir.

If someone could help out making this work in a chroot jail I would be stoked.
_________________
Seth Cole (Google+) (@rockhost)
[ROCKHOST.COM, Inc. - "Established Y2K1"]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Sep 13, 2007 8:51 pm    Post subject: Reply with quote

That's incorrect, to be listed you need a public stream that is accessible, it does not matter how many listeners are on the stream, although on-demand relays are not able to update metadata when they are inactive.

WRT the chroot issue, you have to make sure name resolution works from within the jail, that means you need files like /etc/resolv.conf /etc/nsswitch.conf and the runtime loadable libs that are required to process the entries in nsswitch.conf

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



Joined: 24 Jul 2007
Posts: 54
Location: Lawrence, KS

PostPosted: Thu Sep 13, 2007 9:44 pm    Post subject: Reply with quote

Hey Karl, well I know you are the master of all things Icecast, but I tested that YP listing with and without one listener about 3 or 4 times and that's what my experiment resulted in. Zero listeners, zero listing. One or more listener, one listing.

Thanks for the chroot tip. You have confirmed my suspicions. I appreciate your time. The stream is up and well.
_________________
Seth Cole (Google+) (@rockhost)
[ROCKHOST.COM, Inc. - "Established Y2K1"]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Sep 14, 2007 1:17 am    Post subject: Reply with quote

RockandRollHosting.com wrote:
Hey Karl, well I know you are the master of all things Icecast, but I tested that YP listing with and without one listener about 3 or 4 times and that's what my experiment resulted in. Zero listeners, zero listing. One or more listener, one listing.


I can only go by what the code does, I don't know your particular setup and have no access to your log files to verify any possible problem. Feel free to verify this against the trunk code as well as there has been a number of fixes applied.

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



Joined: 24 Jul 2007
Posts: 54
Location: Lawrence, KS

PostPosted: Fri Sep 14, 2007 1:46 am    Post subject: Reply with quote

Hey again, yeah I'm 100% confident you know what you are talking about. I can just tell you what happened to me. That's all I know.

Enjoy your night!
_________________
Seth Cole (Google+) (@rockhost)
[ROCKHOST.COM, Inc. - "Established Y2K1"]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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