Subject: Re: Forcing NetBSD to use IPv4
To: Jonathan A. Kollasch <jakllsch@kollasch.net>
From: Alasdair Reed <alasdair@primus.com.au>
List: netbsd-users
Date: 02/25/2007 17:31:51
Jonathan A. Kollasch wrote:
> On Sat, Feb 17, 2007 at 10:56:50PM +1100, Alasdair wrote:
>   
>> How can you force NetBSD 3.0.1 to use IPv4 only. I have a number of
>> problems connecting to the net caused by the interaction of my router
>> with the IPv6 protocol . See the thread: 
>> "telnet -4 command switches on IPv4 mode for other apps "            
>> I have researched on the net
>> and it seems that this problem is quite common . There is a document
>> that discusses it here http://v6fix.net/docs/wide-draft-v6fix.en
>> <http://v6fix.net/docs/wide-draft-v6fix.en>  if anyone is interested.
>> In my limited understanding, it would seem that BSD variants
>> are the least likely to suffer problems of all OSs, so I strongly
>> suspect that it is my router.  It seems the quickest solutions are
>>
>>
>>
>> 1. Force NetBSD to use IPv4 , globally.
>>
>>     
>
> Absolutely uncalled for. Unless you have a box with <= 8MiB of RAM.
>
>   
>> Or
>>  
>>  2. Buy a router that can handle IPv6 ok.
>>     
>
> Oh, not even that, just one that understands modern DNS properly.
> Seriously, there's no excuse, IPv6 has been mostly stable for
> the last five years.
>
>   
>>     
>> Can anyone suggest how to do 1.   Or suggest a router that can handle
>> IPv6 . I am using a standalone box with an ADSL connection.
>>
>> Matthias Schele offered me a much more elegant solution, but I need to improve my understanding of the details of networking to  implement it, and I have taken up far to much of his time already. However I need to find a temporary solution till that can be done and the above seem the most likely. As far as I can see instructions on how to  force NetBSD to use IPv4 are not in the guide.
>>     
>
> This is the correct thing to do, that or ask your ISP for the
> addresses of their (hopefully sane) resolvers.
>
> The other, perhaps most elegant, solution is to have the
> system resolver not ask for AAAA first when no non-link-local
> (i.e. public) addresses are on any interface.  I hear this is
> implemented in Windows 6, as well as recent versions of GNU glibc.
>
> 	Jonathan Kollasch
>   
Hi Jonathon,

I would like to resolve this as elegantly as possible. However I need 
some help to  achieve this .

This is the correct thing to do, that or ask your ISP for the
addresses of their (hopefully sane) resolvers.

The other, perhaps most elegant, solution is to have the
system resolver not ask for AAAA first when no non-link-local
(i.e. public) addresses are on any interface.  I hear this is
implemented in Windows 6, as well as recent versions of GNU glibc.

1. How would you make use of the information from the ISP ?

2. How do you get the system resolver to behave in this way? 

Also I imagine that to do the above (#2), named has to be working properly on your system at present I am getting the error messages as follows:

localhost named [271] could not configure root hosts from 'root cache':file
> not found
> local host named [271]loading config file : file not found
> local host named [271] exiting due to fatal error

Matthias suggested I debug named, I tried this using the command

named -d 1

however it did not seem to write a log file in  /var/tmp

Or is it implied in your statement that this is not possible on NetBSD at the moment ?



Any help would be most appreciated.

Regards,

Alasdair