| View previous topic :: View next topic |
| Author |
Message |
yakkob
Joined: 01 Jul 2008 Posts: 8 Location: Boston
|
Posted: Tue Jul 01, 2008 9:23 pm Post subject: Resolving Domains for Authentication |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jul 01, 2008 9:47 pm Post subject: |
|
|
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 |
|
 |
yakkob
Joined: 01 Jul 2008 Posts: 8 Location: Boston
|
Posted: Wed Jul 02, 2008 12:55 am Post subject: |
|
|
| Adding the domain to my /etc/hosts file did not correct the problem. Are there any other solutions? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Jul 02, 2008 1:10 am Post subject: |
|
|
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 |
|
 |
yakkob
Joined: 01 Jul 2008 Posts: 8 Location: Boston
|
Posted: Wed Jul 02, 2008 2:05 am Post subject: |
|
|
Sorry Yes i do use a chroot. I'll give that a try. |
|
| Back to top |
|
 |
yakkob
Joined: 01 Jul 2008 Posts: 8 Location: Boston
|
Posted: Wed Jul 02, 2008 2:13 am Post subject: |
|
|
| That didn't work either. I copied the entire /etc/hosts file to /home/icecast/etc/hosts. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Jul 02, 2008 3:12 am Post subject: |
|
|
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 |
|
 |
|