Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2010 19:39:19 +0000 (GMT)
From:      "Alexandre L." <axelbsd@ymail.com>
To:        Patrick Lamaiziere <patfbsd@davenulle.org>, Alejandro Imass <ait@p2ee.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: u3g network problem
Message-ID:  <903575.94048.qm@web24818.mail.ird.yahoo.com>
In-Reply-To: <v2na14066a01003310518tb8a613a7k32623eef21490a3a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,=0A=0AIf your DNS are changed, I think that your network card is configu=
red in DHCP mode.=0ATo dissallow DNS changes (in /etc/resolv.conf) by DHCP =
updates, you can add this line to /etc/dhclient.conf : =0Aprepend domain-na=
me-servers <DNS_IP_adress_1>,<DNS_IP_adresse_2>,<DNS_IP_adresse_3>;=0AAfter=
 you must restart your network card and voil=E0.=0A=0AAlexandre.=0A=0A--- E=
n date de=A0: Mer 31.3.10, Alejandro Imass <ait@p2ee.org> a =E9crit=A0:=0A=
=0A> De: Alejandro Imass <ait@p2ee.org>=0A> Objet: Re: u3g network problem=
=0A> =C0: "Patrick Lamaiziere" <patfbsd@davenulle.org>=0A> Cc: freebsd-ques=
tions@freebsd.org=0A> Date: Mercredi 31 mars 2010, 12h18=0A> On Tue, Mar 30=
, 2010 at 5:27 PM,=0A> Patrick Lamaiziere=0A> <patfbsd@davenulle.org>=0A> w=
rote:=0A> > (8-STABLE/i386)=0A> >=0A> > Hi,=0A> >=0A> > I've got some troub=
les with a 3G connection. I don't=0A> know which things=0A> > I should chec=
k to debug this:=0A> >=0A> > I use ppp to connect and it works fine. But af=
ter a=0A> while (not a long=0A> > time), I don't have any reply to DNS requ=
ests, as far=0A> I can see with=0A> > wireshark...=0A> >=0A> =0A> What are =
you using to dial to your 3g network? (I use=0A> wvdial, and love it)=0A> =
=0A> I've seen this happen on my 3g network as well. It seems=0A> that the =
ISP=0A> randomly updates the DNS to a broken one. So write down the=0A> DNS=
s when=0A> it's actually working (cat /etc/resolv.conf) and make=0A> yourse=
lf a=0A> little script that updates them back to the working DNSs=0A> here =
is mine=0A> for example (adjust to your working DNSs):=0A> =0A> =0A> # cat =
./dnsdigitel=0A> =0A> #!/bin/sh=0A> echo "nameserver 204.59.152.208" > /etc=
/resolv.conf=0A> echo "nameserver 57.73.127.195" >> /etc/resolv.conf=0A> =
=0A> So when it stops resolving I just ./dnsdigitel and that's=0A> it. Of=
=0A> course, this could be easily automated, etc. but it's a=0A> quick fix =
to=0A> your problem. Now, the interesting this is that your ISP=0A> does ex=
actly=0A> the same as my ISP, it changes the DNS randomly to=0A> non-workin=
g ones,=0A> curious.=0A> =0A> Best,=0A> Alejandro Imass=0A> =0A> > Then if =
I use an IP, it works. So it looks like it is=0A> a problem with=0A> > DNS.=
 I've tried with an other dns server with the same=0A> result. I've=0A> > a=
lso tried with a local dns server to cache the=0A> requests. It looks to=0A=
> > help a bit.=0A> >=0A> > Anyway I also use a ssh tunnel to connect to my=
 server=0A> and (on the=0A> > server) I can see a lot of CLOSED sockets wit=
h=0A> netstat, and a lot of=0A> > sshd processes stuck, even after days. So=
 there is=0A> something wrong with=0A> > the connection.=0A> >=0A> > Any id=
ea or suggestion?=0A> >=0A> > Thanks, regards.=0A> >=0A> >=0A> > __________=
_____________________________________=0A> > freebsd-questions@freebsd.org=
=0A> mailing list=0A> > http://lists.freebsd.org/mailman/listinfo/freebsd-q=
uestions=0A> > To unsubscribe, send any mail to "freebsd-questions-unsubscr=
ibe@freebsd.org"=0A> >=0A> _______________________________________________=
=0A> freebsd-questions@freebsd.org=0A> mailing list=0A> http://lists.freebs=
d.org/mailman/listinfo/freebsd-questions=0A> To unsubscribe, send any mail =
to "freebsd-questions-unsubscribe@freebsd.org"=0A> =0A=0A=0A      




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?903575.94048.qm>