> When connecting to internet with a certain provider, I have problems with
> browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
> servers but the file changes automatically during the connection being filled
> with values different from the ones I want.
>
> Googling around I experimented many possible solutions but none worked
> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
> Even putting off the write permissions over resolv.conf did not work: it must
> be created every time.
>
> Does anyone have any experience about a real solution?
man resolvconf, should help you out
Cheers,
Pavlos
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 03:14 PM
Osamu Aoki
How to fix resolv.conf?
Hi,
On Thu, Jul 24, 2008 at 04:35:59PM +0100, Rodolfo Medina wrote:
> When connecting to internet with a certain provider, I have problems with
> browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
> servers but the file changes automatically during the connection being filled
> with values different from the ones I want.
>
> Googling around I experimented many possible solutions but none worked
> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
> Even putting off the write permissions over resolv.conf did not work: it must
> be created every time.
>
> Does anyone have any experience about a real solution?
>
> Thanks for any help
> Rodolfo
Install resolvconf
Osamu
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 03:35 PM
Rodolfo Medina
How to fix resolv.conf?
When connecting to internet with a certain provider, I have problems with
browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
servers but the file changes automatically during the connection being filled
with values different from the ones I want.
Googling around I experimented many possible solutions but none worked
(e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
Even putting off the write permissions over resolv.conf did not work: it must
be created every time.
Does anyone have any experience about a real solution?
Thanks for any help
Rodolfo
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 03:49 PM
"Thomas Preud'homme"
How to fix resolv.conf?
The Thursday 24 July 2008 17:35:59 Rodolfo Medina, you wrote*:
> When connecting to internet with a certain provider, I have problems with
> browsing. Then I want to fill the file /etc/resolv.conf with the proper
> dns servers but the file changes automatically during the connection being
> filled with values different from the ones I want.
>
> Googling around I experimented many possible solutions but none worked
> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
> Even putting off the write permissions over resolv.conf did not work: it
> must be created every time.
>
> Does anyone have any experience about a real solution?
>
> Thanks for any help
> Rodolfo
What did you try in dhclient.conf ? The option do-forward-updates set to true
should be the answer.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 04:11 PM
"Damon L. Chesser"
How to fix resolv.conf?
On Thu, 2008-07-24 at 16:35 +0100, Rodolfo Medina wrote:
> When connecting to internet with a certain provider, I have problems with
> browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
> servers but the file changes automatically during the connection being filled
> with values different from the ones I want.
>
> Googling around I experimented many possible solutions but none worked
> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
> Even putting off the write permissions over resolv.conf did not work: it must
> be created every time.
>
> Does anyone have any experience about a real solution?
>
> Thanks for any help
> Rodolfo
>
Rodolfo,
I don't understand your issue. Are you using dhcp, you must be, and as
a result, your resolve.conf changes with input from the dhcp server.
Use static IP in /etc/network/interfaces, edit resolv.conf, you are
done.
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
# address 192.168.200.15
# netmask 255.255.255.0
# network 192.168.200.0
# broadcast 192.168.200.255
# gateway 192.168.200.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.200.1
dns-search damtek.org
address 192.168.200.15
netmask 255.255.255.0
gateway 192.168.200.1
My dns servers do not now change as a result. If you use dhcp (and have
to use it) then in my case the name servers are given to me by my
router/dns server which gets it from the ISP. I do not have resolveconf
package installed. Does this help?
--
Damon L. Chesser
damon@damtek.com
http://www.linkedin.com/in/dchesser
07-24-2008, 05:56 PM
"Damon L. Chesser"
How to fix resolv.conf?
On Thu, 2008-07-24 at 19:42 +0100, Rodolfo Medina wrote:
SNIP
>
>
>
> Thanks. My `/etc/network/interface' is very poor:
>
>
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
>
> . Now, suppose I want the following ppp connection log output:
>
> local IP address 151.82.24.152
> remote IP address 10.6.6.6
> primary DNS address 193.70.152.25
> secondary DNS address 193.70.192.25
>
> . In /etc/resolv.conf I suppose I have to put the lines:
>
> nameserver 193.70.152.25
> nameserver 193.70.192.25
>
> . How do you suggest I should edit /etc/network/interface?
>
> Thanks
> Rodolfo
Rodolfo,
I do not know what you need for PPP and we will have to wait for someone
who knows to respond.
--
Damon L. Chesser
damon@damtek.com
http://www.linkedin.com/in/dchesser
07-24-2008, 06:42 PM
Rodolfo Medina
How to fix resolv.conf?
On Thu, Jul 24, 2008 at 04:35:59PM +0100, Rodolfo Medina wrote:
>> When connecting to internet with a certain provider, I have problems with
>> browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
>> servers but the file changes automatically during the connection being filled
>> with values different from the ones I want.
>>
>> Googling around I experimented many possible solutions but none worked
>> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
>> Even putting off the write permissions over resolv.conf did not work: it must
>> be created every time.
>>
>> Does anyone have any experience about a real solution?
"Damon L. Chesser" <damon@damtek.com> writes:
> Rodolfo,
>
> I don't understand your issue. Are you using dhcp, you must be, and as
> a result, your resolve.conf changes with input from the dhcp server.
> Use static IP in /etc/network/interfaces, edit resolv.conf, you are
> done.
>
> Here is a copy of my files:
>
> cat /etc/resolv.conf
> domain damtek.org
> search damtek.org
> nameserver 68.87.68.162
> nameserver 68.87.74.162
> nameserver 192.168.200.1
>
> cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> auto eth0
> iface eth0 inet static
> # address 192.168.200.15
> # netmask 255.255.255.0
> # network 192.168.200.0
> # broadcast 192.168.200.255
> # gateway 192.168.200.1
> # dns-* options are implemented by the resolvconf package, if installed
> dns-nameservers 192.168.200.1
> dns-search damtek.org
> address 192.168.200.15
> netmask 255.255.255.0
> gateway 192.168.200.1
>
>
> iface eth1 inet static
> address 192.168.200.16
> netmask 255.255.255.0
> gateway 192.168.200.1
>
>
> My dns servers do not now change as a result. If you use dhcp (and have
> to use it) then in my case the name servers are given to me by my
> router/dns server which gets it from the ISP. I do not have resolveconf
> package installed. Does this help?
Thanks. My `/etc/network/interface' is very poor:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
. Now, suppose I want the following ppp connection log output:
local IP address 151.82.24.152
remote IP address 10.6.6.6
primary DNS address 193.70.152.25
secondary DNS address 193.70.192.25
. In /etc/resolv.conf I suppose I have to put the lines:
nameserver 193.70.152.25
nameserver 193.70.192.25
. How do you suggest I should edit /etc/network/interface?
Thanks
Rodolfo
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 07:37 PM
"Mumia W.."
How to fix resolv.conf?
On 07/24/2008 01:42 PM, Rodolfo Medina wrote:
[...]
. Now, suppose I want the following ppp connection log output:
local IP address 151.82.24.152
remote IP address 10.6.6.6
primary DNS address 193.70.152.25
secondary DNS address 193.70.192.25
. In /etc/resolv.conf I suppose I have to put the lines:
nameserver 193.70.152.25
nameserver 193.70.192.25
. How do you suggest I should edit /etc/network/interface?
Thanks
Rodolfo
If you use pppd, removing the "usepeerdns" option from /etc/ppp/options
should work; however, on my Etch system, pppd writes its file to
/etc/ppp/resolv.conf, and the script /etc/ppp/ip-up.d/0000userpeerdns
merges the data into /etc/resolv.conf, so I would remove execute
permissions on /etc/ppp/ip-up.d/0000usepeerdns.
You probably only need to do one of those things--not both.
What OS/distribution are you using?
P.S.
I'm using dialup, and my /etc/resolv.conf is unchanged from when I last
set it up.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 09:18 PM
Rodolfo Medina
How to fix resolv.conf?
On Thu, Jul 24, 2008 at 04:35:59PM +0100, Rodolfo Medina wrote:
>> When connecting to internet with a certain provider, I have problems with
>> browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
>> servers but the file changes automatically during the connection being filled
>> with values different from the ones I want.
>>
>> Googling around I experimented many possible solutions but none worked
>> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
>> Even putting off the write permissions over resolv.conf did not work: it must
>> be created every time.
>>
>> Does anyone have any experience about a real solution?
p_pavlos@freemail.gr (Pavlos Parissis) writes:
> man resolvconf, should help you out
Osamu Aoki <osamu@debian.org> writes:
> Install resolvconf
Thanks. I installed resolvconf and, as suggested at:
http://wiki.debian.org/NetworkConfiguration
, I added the following line:
dns-nameservers 193.70.152.25 193.70.192.25
to the file /etc/network/interfaces. Now I can browse, but still the ppp
connection log shows the following values:
primary DNS address 10.11.12.13
secondary DNS address 10.11.12.14
, that are not the ones I want. It may be important because the connection is
slower than it's supposed to be, and this may be related to the matter.
Thanks for further hints.
Rodolfo
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-24-2008, 09:34 PM
Alex Samad
How to fix resolv.conf?
On Thu, Jul 24, 2008 at 04:35:59PM +0100, Rodolfo Medina wrote:
> When connecting to internet with a certain provider, I have problems with
> browsing. Then I want to fill the file /etc/resolv.conf with the proper dns
> servers but the file changes automatically during the connection being filled
> with values different from the ones I want.
>
> Googling around I experimented many possible solutions but none worked
> (e.g. edit the file /etc/network/interfaces or /etc/dhcp3/dhclient.conf).
> Even putting off the write permissions over resolv.conf did not work: it must
> be created every time.
>
> Does anyone have any experience about a real solution?
sounds more like a problem with your provider, they normally provide
these details in the connection
>
> Thanks for any help
> Rodolfo
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
"If truth is beauty, how come no one has their hair done in the library?"
-- Lily Tomlin