Unix Technical Forum

Weird DNS Problem, Timeouts ipv6?

This is a discussion on Weird DNS Problem, Timeouts ipv6? within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi Everyone, I just installed a brand new completely default OpenBSD 4.0/i386 system. I have not changed any settings ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 08:47 AM
Michael Dombrowski
 
Posts: n/a
Default Weird DNS Problem, Timeouts ipv6?

Hi Everyone,
I just installed a brand new completely default OpenBSD 4.0/i386 system.
I have not changed any settings on it other than X, install bash, etc,
ie, nothing that should bother the network. It's connect to my network
where I have a OpenWRT router handing out dhcp(dnsmasq) and the
linux/windows/mac/etc machines on the network all work fine.

During install I netbooted and installed from ftp seemingly with no
problems. However, when installing packages from ports I noticed that it
took a long time to start to download the package, leading me to think
there was maybe a DNS problem. Upon investigations with lynx, ftp, and
ssh I found out that DNS takes a very long time (>60s) to resolve.
However, dig and ping both return IPs immediately. With some help from
#openbsd, I stumbled on the -4 option for ssh, without the option it
takes a very long time to ask my password, with -4 the password prompt
appears in <.5 seconds. This leads me to think there is some ipv6 problem...

I haven't touched the network settings on this machine and am not doing
anything with ipv6 on my router/network. Any ideas? This is a really
aggravating bug.

Thanks so much
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 08:48 AM
Helmut Schneider
 
Posts: n/a
Default Re: Weird DNS Problem, Timeouts ipv6?

Michael Dombrowski <legodudenein@hammycorp.com> wrote:

> I just installed a brand new completely default OpenBSD 4.0/i386 system. I
> have not changed any settings on it other than X, install bash, etc, ie,
> nothing that should bother the network. It's connect to my network where I
> have a OpenWRT router handing out dhcp(dnsmasq) and the
> linux/windows/mac/etc machines on the network all work fine.
> During install I netbooted and installed from ftp seemingly with no
> problems. However, when installing packages from ports I noticed that it
> took a long time to start to download the package, leading me to think
> there was maybe a DNS problem. Upon investigations with lynx, ftp, and ssh
> I found out that DNS takes a very long time (>60s) to resolve. However,
> dig and ping both return IPs immediately. With some help from #openbsd, I
> stumbled on the -4 option for ssh, without the option it takes a very long
> time to ask my password, with -4 the password prompt appears in <.5
> seconds. This leads me to think there is some ipv6
> problem... I haven't touched the network settings on this machine and am
> not doing anything with ipv6 on my router/network. Any ideas? This is a
> really aggravating bug.


What is in /etc/resolv.conf? 'npd -a' could be interesting, too.

Helmut


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 08:48 AM
Michael Dombrowski
 
Posts: n/a
Default Re: Weird DNS Problem, Timeouts ipv6?

Helmut Schneider wrote:
> Michael Dombrowski <legodudenein@hammycorp.com> wrote:
>
>> I just installed a brand new completely default OpenBSD 4.0/i386 system. I
>> have not changed any settings on it other than X, install bash, etc, ie,
>> nothing that should bother the network. It's connect to my network where I
>> have a OpenWRT router handing out dhcp(dnsmasq) and the
>> linux/windows/mac/etc machines on the network all work fine.
>> During install I netbooted and installed from ftp seemingly with no
>> problems. However, when installing packages from ports I noticed that it
>> took a long time to start to download the package, leading me to think
>> there was maybe a DNS problem. Upon investigations with lynx, ftp, and ssh
>> I found out that DNS takes a very long time (>60s) to resolve. However,
>> dig and ping both return IPs immediately. With some help from #openbsd, I
>> stumbled on the -4 option for ssh, without the option it takes a very long
>> time to ask my password, with -4 the password prompt appears in <.5
>> seconds. This leads me to think there is some ipv6
>> problem... I haven't touched the network settings on this machine and am
>> not doing anything with ipv6 on my router/network. Any ideas? This is a
>> really aggravating bug.

>
> What is in /etc/resolv.conf? 'npd -a' could be interesting, too.
>
> Helmut
>
>


Hi Helmut,
Here is my resolv.conf, npd was not found on my system...?

-bash-3.1$ cat /etc/resolv.conf
search lan
nameserver 192.168.0.1
lookup file bind


Thanks
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 08:48 AM
Cory Albrecht
 
Posts: n/a
Default Re: Weird DNS Problem, Timeouts ipv6?

Helmut Schneider wrote:
> Michael Dombrowski <legodudenein@hammycorp.com> wrote:
>> problems. However, when installing packages from ports I noticed that it
>> took a long time to start to download the package, leading me to think
>> there was maybe a DNS problem. Upon investigations with lynx, ftp, and ssh
>> I found out that DNS takes a very long time (>60s) to resolve. However,
>> dig and ping both return IPs immediately. With some help from #openbsd, I
>> stumbled on the -4 option for ssh, without the option it takes a very long
>> time to ask my password, with -4 the password prompt appears in <.5
>> seconds. This leads me to think there is some ipv6
>> problem... I haven't touched the network settings on this machine and am
>> not doing anything with ipv6 on my router/network. Any ideas? This is a
>> really aggravating bug.


> What is in /etc/resolv.conf? 'npd -a' could be interesting, too.


This sounds a lot like the typical problem of when system has IPv6
capability but no actual IPv6 network links. The system does a DNS query
and gets back an AAAA record for a host and then, because it has no IPv6
link, it times out waiting for a response to an IPv6 connection to the
returned address. Could this also be Mr. Dombrowski's problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 08:48 AM
Michael Dombrowski
 
Posts: n/a
Default Re: Weird DNS Problem, Timeouts ipv6?

Cory Albrecht wrote:
> Helmut Schneider wrote:
>> Michael Dombrowski <legodudenein@hammycorp.com> wrote:
>>> problems. However, when installing packages from ports I noticed that it
>>> took a long time to start to download the package, leading me to think
>>> there was maybe a DNS problem. Upon investigations with lynx, ftp, and ssh
>>> I found out that DNS takes a very long time (>60s) to resolve. However,
>>> dig and ping both return IPs immediately. With some help from #openbsd, I
>>> stumbled on the -4 option for ssh, without the option it takes a very long
>>> time to ask my password, with -4 the password prompt appears in <.5
>>> seconds. This leads me to think there is some ipv6
>>> problem... I haven't touched the network settings on this machine and am
>>> not doing anything with ipv6 on my router/network. Any ideas? This is a
>>> really aggravating bug.

>
>> What is in /etc/resolv.conf? 'npd -a' could be interesting, too.

>
> This sounds a lot like the typical problem of when system has IPv6
> capability but no actual IPv6 network links. The system does a DNS query
> and gets back an AAAA record for a host and then, because it has no IPv6
> link, it times out waiting for a response to an IPv6 connection to the
> returned address. Could this also be Mr. Dombrowski's problem?


Hi Cory,
That sounds exactly what we concluded on IRC... it's a dead giveaway
when I force ssh to just use ipv4 it behaves exactly as expected. The
problem is that I don't know how to fix it... I didn't touch any network
settings when installing it and don't have ipv6 on my network anywhere
so I don't know why it would be trying to use it.

Thanks
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 08:49 AM
Christian Weisgerber
 
Posts: n/a
Default Re: Weird DNS Problem, Timeouts ipv6?

Cory Albrecht <coryalbrecht+news@hotmail.com> wrote:

> This sounds a lot like the typical problem of when system has IPv6
> capability but no actual IPv6 network links. The system does a DNS query
> and gets back an AAAA record for a host and then, because it has no IPv6
> link, it times out waiting for a response to an IPv6 connection to the
> returned address.


No. This only happens if there is an actual IPv6 route.

--
Christian "naddy" Weisgerber naddy@mips.inka.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com