| View previous topic :: View next topic |
| Author |
Message |
rockhost
Joined: 24 Jul 2007 Posts: 54 Location: Lawrence, KS
|
Posted: Thu Sep 13, 2007 6:41 pm Post subject: Couldn't resolve host 'dir.xiph.org' |
|
|
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 |
|
 |
rockhost
Joined: 24 Jul 2007 Posts: 54 Location: Lawrence, KS
|
Posted: Thu Sep 13, 2007 6:55 pm Post subject: |
|
|
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 |
|
 |
rockhost
Joined: 24 Jul 2007 Posts: 54 Location: Lawrence, KS
|
Posted: Thu Sep 13, 2007 7:20 pm Post subject: |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Sep 13, 2007 8:51 pm Post subject: |
|
|
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 |
|
 |
rockhost
Joined: 24 Jul 2007 Posts: 54 Location: Lawrence, KS
|
Posted: Thu Sep 13, 2007 9:44 pm Post subject: |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Sep 14, 2007 1:17 am Post subject: |
|
|
| 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 |
|
 |
rockhost
Joined: 24 Jul 2007 Posts: 54 Location: Lawrence, KS
|
Posted: Fri Sep 14, 2007 1:46 am Post subject: |
|
|
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 |
|
 |
|