[jitsi-dev] local LAN configuration?


#1

Hi,

I am using Jitsi for sip testing on my local LAN with dynamic IPs, to
adress this i add a line to the hosts file on each system where Jitsi
is running. For example:
192.168.1.124 sip-servlets.com

I then use this domain as the sip domain.

on both Linux and windows i see the following warnings showing in the
logs :
"No AAAA and A record found for sip-servlets.com"

and throws a java.net.UnknownHostException

What setup do you recommend for private address LAN, and how do i avoid
IPv6 issues?

Thanks,
Shay


#2

Hey Shay

[...] hosts file [...]

Unfortunately the DNS implementation used by Jitsi (DNSJAVA) ignores entries in the local hosts file. We can't rely on Java's own DNS resolution as it doesn't support newer DNS types as NAPTR and SVR records and sometimes even tries to connect to unreachable DNS servers.

What setup do you recommend for private address LAN, and how do i avoid
IPv6 issues?

If you have access to a DNS server either at home or on a public domain, create an A record there and let it point to your private address.

Regards,
Ingo

PS, Emil: It might be worth considering to implement a fallback to Java's DNS resolution for A/AAAA records when neither the normal nor the backup resolver return a result...


#3

Hey Ingo,

На 25.04.11 01:01, Bauersachs Ingo написа:

Hey Shay

[...] hosts file [...]

Unfortunately the DNS implementation used by Jitsi (DNSJAVA) ignores
entries in the local hosts file. We can't rely on Java's own DNS
resolution as it doesn't support newer DNS types as NAPTR and SVR
records and sometimes even tries to connect to unreachable DNS
servers.

What setup do you recommend for private address LAN, and how do i
avoid IPv6 issues?

If you have access to a DNS server either at home or on a public
domain, create an A record there and let it point to your private
address.

Regards, Ingo

PS, Emil: It might be worth considering to implement a fallback to
Java's DNS resolution for A/AAAA records when neither the normal nor
the backup resolver return a result...

Wouldn't it make more sense to contribute a patch to dnsjava instead?

After all /etc/hosts entries are supposed to override those in the DNS
rather than only serve as a fallback.

Cheers,
Emi.


#4

Hi,

thanks for the info , luckily I am running dd-wrt on my router , so
was able to add an IPv4 A record to DNS.

Thanks,
Shay


#5

PS, Emil: It might be worth considering to implement a fallback to
Java's DNS resolution for A/AAAA records when neither the normal nor
the backup resolver return a result...

Wouldn't it make more sense to contribute a patch to dnsjava instead?

I only remembered solution 1 of Brian Wellington when I stumbled across this problem some time ago (http://old.nabble.com/DNS-Resolve-from-hosts-file-first-then-DNS-Server-td15431381.html). It would probably involve writing a custom resolver, cross platform. Would be a nice project of its own...

After all /etc/hosts entries are supposed to override those in the DNS
rather than only serve as a fallback.

True.

Regards,
Ingo