Why does Xfce 4.2 have to query a DNS ?

Jon Drews jon.drews at gmail.com
Mon Mar 14 01:06:49 PST 2005

On Mon, 14 Mar 2005 08:44:35 +0000 (UTC), Volker Stolz <vs at freebsd.org> wrote:
> * Jon Drews <jon.drews at gmail.com>:
> > So it looks like xfce4-session is trying to find a domain name server?
> > I say that because /etc/services says that port 53 is for DNS.
> You should probably raise this issue with the original xfce-authors
> (mailinglists?). We're just the packagers after all.

Hi Volker:

 I did write them and the developer responded. Here is what he said:

"xfsm-dns.c contains safety checks that are executed on session start."

"The problem is Xterm itself - the client part of libICE, to be exact.
Did you disable "Manage remote applications" in Settings -> Session and
Startup -> Advanced? (xfce4-session needs to be restarted afterwards)"

 Well, I don't think that is the case as Xterm opens really fast here
on the Rox desktop. In every instance that there is a slow down, I see
the xfce-session in the sockstat output. So Xfce is trying to query
comething on port 53. As for the disable "Manage remote applications",
it is disabled.

 This was a really nice desktop, too bad it's screwed up now. First
Xffm got botched and now it has this feature that does not work. I
mean this code from xfsm-dns.c certainly seems like the culprit:

static gboolean
check_for_dns (void)
  struct addrinfo *result = NULL;
  struct addrinfo  hints;
  char   buffer[256];
  gchar *hostname;

  hostname = queryhostname (buffer, 256, FALSE);
  if (hostname == NULL)
    return FALSE;

  bzero (&hints, sizeof (hints));
  hints.ai_socktype = SOCK_STREAM;
  hints.ai_flags = AI_CANONNAME;

  if (getaddrinfo (hostname, NULL, &hints, &result) != 0)
    return FALSE;

  if (g_ascii_strncasecmp (result->ai_canonname, hostname, 0) != 0)
    return FALSE;
  if (gethostbyname (hostname) == NULL)
      return FALSE;

    Kind regards,

More information about the freebsd-ports mailing list