DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running debian testing with 2.6.15, being connected to the net with adsl/router modem connected to my eth0, the adsl modem is 192.168.1.1
My /etc/resolv.conf is
Nameserver 192.168.1.1
And my /etc/network/interfaces is
…
Auto eth0
Iface eth0 inet dhcp
…
I am able to ping www.google.com but not able to apt-get, it gives
#apt-get update
0% [Conncting to http.us.debian.org (1.0.0.0)] …
I have resolvconf installed, I can only fix this if I change the IP in my /etc/resolvconf to my ISP DNS. which is worthless because on ipdown and ipup or reboot, it gets overwritten to 192.168.1.1
And my /etc/network/interfaces is
…
Auto eth0
Iface eth0 inet dhcp
…
I am able to ping www.google.com but not able to apt-get, it gives
#apt-get update
0% [Conncting to http.us.debian.org (1.0.0.0)] …
I have resolvconf installed, I can only fix this if I change the IP in my /etc/resolvconf to my ISP DNS. which is worthless because on ipdown and ipup or reboot, it gets overwritten to 192.168.1.1
Any one can help with this problem.
Thanks
your resolv.conf is getting changed because some script on running is changing it. I think it must be the pppoe-script in which you must have specified the DNS server as 192.168.1.1
either run the pppoe-setup again or check out for the script in /etc/ppp.
(i don't know about debian.........i'm slacker)
and one more thing....DNS in /etc/resolv.conf must be changed to the DNS of your ISP. It should not be 192.168.1.1. I don't know how are you pinging to google.com.
You should be able to specify the dns servers you dhcp server gives out on the router. The router ip should work, if you are able to ping google then it definitely is. It may have a corrupt cache, try bouncing the router.
I tried unplugging and re-connecting the power cable, which did not realy change any thing.
I am able to ping my modem on 192.168.1.1, in my modem setting it uses the correct isp DNS.
I have resolvconf installed, I can only fix this if I change the IP in my /etc/resolvconf to my ISP DNS. which is worthless because on ipdown and ipup or reboot, it gets overwritten to 192.168.1.1
does it mean that on changing the setting in /eyc/resolv.conf everything is working fine ???
"every thing" yes, in this end, it is only the browser and the apt-get and pining, they all work fine when I change the 192.168.1.1 "the adsl modem/router" address to the ISP primary address.
"every thing" yes, in this end, it is only the browser and the apt-get and pining, they all work fine when I change the 192.168.1.1 "the adsl modem/router" address to the ISP primary address.
thats what i adviced you to do in my first post.
as you said that something is re-writing your entries in /etc/resolv.conf, so i adviced you to look out for that script. In my case its always the /etc/ppp script. So either look for that script and change the DNS there or setup again the internet connection.
notice it is the only entry and it is commented with #, so that tell us there is nothing under /etc/ppp/files that is using the string "192.168.1.1" unless it is being passed-by-ref and not by-value.
the fix:
I wrote a script which I ran ever time I wanted to connect to the Internet.
here it is
************************************************************
ifup -a
sleep 4
perl -pi -e 's/192.168.1.1/xxx/e' /etc/resolv.conf
/etc/init.d/ntpdate start
where xxx is the primary dns of my isp
************************************************************
now for what ever reason I noticed that it connects and all works find with out runing the script any more, furthermore I noticed after I run the script "which is not really needed anymore" that I get
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf
ok, maybe by breaking the sym.link as above this problem would have been fixed long time ago. I don't know, I guss I can reinstall the sym.link and see if that breaks it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.