-   *BSD (
-   -   internet SLOW, sometimes ETERNAL (

e13438 10-19-2005 12:16 PM

internet SLOW, sometimes ETERNAL
Hello everybody,

I have a GreatSpeed ADSL modem with a switch connected to my two computers, one with windows, and the other, a laptop with netBSD. I managed to configure the network to have internet access, but now it only works with some sites and hangs up with others. For example I can go to without problem, but i'm not able at all to go to, and so on.
With windows there's no problem.

I don't know if you need more information to help me solve my problem, in that case don't hesitate to ask me.

Thanks a lot!!!


rleesBSD 10-21-2005 11:13 AM

Yesterday there were serious internet outages .... see for more detail. I had the same problem here, with some sites being very slow and some not connecting at all. The difference between windows and your other machine may be the caching of DNS on windows, or something like that ...

e13438 11-13-2005 04:12 PM

Thanks for your reply, but mine isn't a temporal problem. I cannot reach where I have an email account under NetBSD at any hour nor day. So the other option is the DNS caching. But how can i modify that in order to get to any site I want? please, help!

anomie 11-13-2005 04:43 PM

Assuming NetBSD's nameservers live in the same place that FreeBSD's do, what does

cat /etc/resolv.conf
show you?

Confirm that the nameservers here match those that your Windows box is using.

e13438 11-15-2005 04:39 PM

Dear anomie,

emilio@atenea[~]$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

emilio@atenea[~]$ ls /etc
X11 ftpusers mailcap nsswitch.conf rc skeykeys
bootptab gettytab mailer.conf ntp.conf rc.conf sliphome
cgd group man.conf openssl rc.conf.d spwd.db
changelist hosts master.passwd passwd rc.d ssh
csh.cshrc hosts.equiv mime.types passwd.conf rc.lkm sysctl.conf
csh.login hosts.lpd mk.conf passwd.conf.pre-sysinst rc.local syslog.conf
csh.logout ifconfig.pppoe0 moduli phones rc.shutdown systrace
daily inetd.conf monthly postfix rc.subr ttyaction
daily.conf kerberosIV monthly.conf postinstall release ttys
defaults kerberosV motd powerd remote usermgmt.conf
disktab mrouted.conf ppp rmt uucp
dm.conf mtree printcap rpc weekly
dumpdates lkm.conf named.conf profile security weekly.conf
floppytab localtime namedb protocols security.conf wscons.conf
fonts locate.conf netconfig pwd.db services
fstab mail networks racoon shells
ftpchroot mail.rc newsyslog.conf rbootd.conf skel

emilio@atenea[~]$ locate resolv.conf

emilio@atenea[~]$ man resolv.conf
and it shows the man page for resolv.conf saying that it is located in /etc !!!

are you perhaps speaking about /etc/hosts ?

anomie 11-15-2005 08:15 PM

No, I am not talking about /etc/hosts.

I would suggest using whatever tool NetBSD gives you for configuring your NIC to manually add your nameservers. If you don't know what they are, you can check your Windows box. Better still, the config tool may give you the option to update your nameservers via dhcp - that might work.

Alternatively, create the /etc/resolv.conf file yourself and add your nameserver entries, like so

nameserver      x.x.x.x
nameserver      x.x.x.x

e13438 11-16-2005 07:22 PM

ok, I don't know what is my NIC, I don't know how to check those values in my windows box, I don't how to use a config tool with DHCP, and I don't understand what I have to write in resolv.conf. I'm a newbie!!!


If "nameserver" is my machine's name and x.x.x.x is its internal IP, what is the difference between these and hosts ?? and if x.x.x.x is its external IP, I don't have one, because it changes!

hope you can explain me all this stuff!

anomie 11-16-2005 10:40 PM

From Windows use the command:

ipconfig /all
Look carefully at the output and locate Primary DNS and Secondary DNS. Write these down.

Now on your BSD box, su to root. Then run the following two commands:

echo 'nameserver x.x.x.x' >> /etc/resolv.conf
echo 'nameserver x.x.x.x' >> /etc/resolv.conf

The x.x.x.x for the first line should be the Primary DNS server you wrote down. The x.x.x.x for the second line should be the Secondary DNS server you wrote down.

e13438 11-17-2005 01:05 PM

Here's my 'ipconfig /all' output from my windows box: (in spanish)


Configuración IP de Windows

Nombre del host. . . . . . . . : BISMARK.ORG

Servidores DNS . . . . . . . . :

Tipo de nodo . . . . . . . . . : Difusión

Id. de _mbito NetBIOS. . . . . :

Enrutamiento IP habilitado . . : No

WINS Proxy habilitado. . . . . : No

Resolución NetBIOS usa DNS . . : No

0 Ethernet adaptador :

Descripción . . . . . . . . . : Accton EN1207D/EN2242A Series NDIS 5.0 driver

Dirección física . . . . . . . : 00-10-B5-EF-25-A5

DHCP habilitado. . . . . . . . : No

Dirección IP . . . . . . . . . :

M_scara de subred. . . . . . . :

Puerta de enlace predeterminada:

Servidor WINS primario . . . . :

Servidor WINS secundario . . . :

Concesión obtenida . . . . . . :

La concesión caduca. . . . . . :

1 Ethernet adaptador :

Descripción . . . . . . . . . : PPP Adapter.

Dirección física . . . . . . . : 44-45-53-54-00-00

DHCP habilitado. . . . . . . . : Sí

Dirección IP . . . . . . . . . :

M_scara de subred. . . . . . . :

Puerta de enlace predeterminada:

Servidor DHCP. . . . . . . . . :

Servidor WINS primario . . . . :

Servidor WINS secundario . . . :

Concesión obtenida . . . . . . :

La concesión caduca. . . . . . :


As you can see, the only two things where it tells something about DNS are

DNS servers.........:
NetBIOS resolution uses DNS.................: No

What now?!

Anyway, are you sure that making the resolv.conf file will solve my internet problems?


anomie 11-18-2005 02:40 PM

That is a private IP. Apparently you are behind some sort of NAT device (probably a hardware router). Get the nameservers from the NAT device itself. These things usually have a web administration tool or some such. Then add then to /etc/resolv.conf like we discussed.

No, I am not sure this will solve your problems, but it is very possible that it will. This is process-of-elimination time.

e13438 11-18-2005 07:09 PM

Yes, my modem is connected to a router (or switch?) by an ethernet cable, and then many ethernet cables come out of the router to my two computers. But as far as I know, it doesn't have any administration tool, because I don't think it came with any CD nor floppy. It is an Encore 8 port Nway Switch, but anyway I'm not sure if you are referring to this. Do you want me to connect directly my modem to my laptop to see what happens?

anomie 11-19-2005 01:31 AM

I would check the router manual. You should be able to log in to it and see which nameservers it was assigned via dhcp.

All times are GMT -5. The time now is 11:39 PM.