Package: siproxd
Version: 1:0.7.1-1
Severity: normal
Tags: patch

  I've backported the latest siproxd (from experimental) on a Debian 
Etch. It didn't work at first, and activating debug traces, I've found 
that when using this proxy in a chroot jail (default configuration), the 
DNS resolution isn't working :

siproxd[10444]: utils.c:193 gethostbyname(ekiga.net) failed: h_errno=1 [Unknown 
host]

I've found a similar report on the web :
http://osdir.com/ml/network.siproxd/2005-10/msg00004.html

and I've implemented the trivial solution suggested, as the resolution 
of 'localhost' don't seem sufficient (see attached patch), and it works 
fine now.

        Fred.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages siproxd depends on:
ii  adduser           3.102                  Add and remove users and groups
ii  libc6             2.3.6.ds1-13etch7      GNU C Library: Shared libraries
ii  libosip2-3deb     3.1.0-1.1calistelEtch1 Session Initiation Protocol (SIP) 

siproxd recommends no packages.

-- no debconf information
--- siproxd-0.7.1/src/utils.c	2008-01-19 17:07:14.000000000 +0100
+++ siproxd-0.7.1mod/src/utils.c	2008-11-24 16:51:40.000000000 +0100
@@ -302,6 +302,14 @@
           */
          struct in_addr dummy;
          get_ip_by_host("localhost", &dummy);
+		 /* As I got failed gethostname() when using siproxd in chroot jail,
+		  * following suggestion found on Internet,
+		  * see http://osdir.com/ml/network.siproxd/2005-10/msg00004.html,
+		  * I added a resolution to a (well known ;-) external name.
+		  * 	Fred.
+		  */
+         get_ip_by_host("www.debian.org", &dummy);
+
          DEBUGC(DBCLASS_CONFIG,"chrooting to %s",
                 configuration.chrootjail);
          sts = chroot(configuration.chrootjail);

Reply via email to