Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
02-27-2005, 03:11 PM
|
#16
|
Member
Registered: Feb 2005
Distribution: Slack
Posts: 122
Rep:
|
You probably are using the dhcp service, which for some reason like to rewrite your /etc/resolv.conf. You have to re-edit it again. You could write a script to run at startup and create it every time so you don't have to do this. Or there could be a better way, I don't use the dhcp service though to often.
|
|
|
02-27-2005, 03:29 PM
|
#17
|
Member
Registered: Feb 2005
Distribution: Slack
Posts: 122
Rep:
|
what happens is the the dhcp queries the dhcp ip you gave it when you set it up. It's get your ip, lease time, and dns info (which get rewritten into the resolv.conf file). If your dhcp server is not set up properly it messes up the resolv.conf.
|
|
|
02-27-2005, 03:49 PM
|
#18
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
I have the right DNS server settings. I DONT KNOW WHY IS DOING THIS!!!!!! ITS ANNOYING.
Ok, Is there any way to do a command that tells you EVERY SINGLE INTERNET OR CONNECTION SETTINGS SO I COULD POST THE OUTPUT HERE???? AND IF I COULD DO THAT, THEN I WILL WRITE DOWN ON THE SETTINGS ARE SO NEXTIME IF I SET THIS UP IT WILL NOT DO THIS AGAIN. I just want to see an overview of my connection settings all in one screen so I could post them here.
And I did remove the nameserver 127.0.0.1 from that directory what you mentioned. I had saved it upon exit but it still pops-up. How can I prevented from popping up?
I dont know about why Mandrake does this for some odd reason ,but everytime I save something in the Internet Connection Wizard, it does not save it even when I hit Apply and OK button upon close.
Its pretty lame....
Last edited by wardialer; 02-27-2005 at 03:58 PM.
|
|
|
02-27-2005, 04:16 PM
|
#19
|
Member
Registered: Feb 2005
Distribution: Slack
Posts: 122
Rep:
|
Show the routing table:
shell$ route -n
Show active interfaces:
shell$ ifconfig
Show the dns info:
shell$ cat /etc/resolv.conf
Tell me if you are running a dhcp or a static config:
shell$ ps aux | grep dhcp
|
|
|
02-27-2005, 04:24 PM
|
#20
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
eth0 Link encap:Ethernet HWaddr MAC ADDRESS BLOCKED
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1995 errors:0 dropped:0 overruns:0 frame:0
TX packets:2355 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1424842 (1.3 Mb) TX bytes:362153 (353.6 Kb)
Interrupt:11 Base address:0xd000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:244 errors:0 dropped:0 overruns:0 frame:0
TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16199 (15.8 Kb) TX bytes:16199 (15.8 Kb)
nameserver 127.0.0.1
nameserver 66.51.205.100
nameserver 66.51.206.100
search localhost
root 3341 0.0 0.1 1952 964 ? S 12:45 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0
Last edited by wardialer; 02-27-2005 at 04:26 PM.
|
|
|
02-27-2005, 04:27 PM
|
#21
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
So, by looking at this, what could be the problem??? Why is it getting stuck or hang on webpages sometimes???
|
|
|
02-27-2005, 04:41 PM
|
#22
|
Member
Registered: Feb 2005
Distribution: Slack
Posts: 122
Rep:
|
namserver 127.0.0.1 can't be in the resolv.conf. your using a dhcp ... /sbin/dhclient, which keeps rewritting it at boot.
tells my that you dhcp is not set up properly. You have to edit your /etc/dhcpd.conf file.
shell$ man dhcpd.conf
look for the stuff about dns. I've also had a lot of problems when using the dhcp to update the dns info.
|
|
|
02-27-2005, 05:40 PM
|
#24
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
The HowTo manual link seems like hard work.
So I think this is not an easy fix.
I want to this manually. So how could I fix this issue? Like I said, that 127.0.0.1 still appears even after I saved it. But how would I fix this issue???
If you could provide me with the steps here, I promise I will add these into my Linux notes what I saved on my Hardrive. Well, what do you think?
Could you?
I went into my MCC/Internrt Connection Wizard, and followed everything that I knew about my DSL connection such as:
1. I am using DHCP
2. Using a PPPoE dialer, which my Linksys router is doing when I bootup
3. I checked, Start on Bootup
But, I keep on seeing this weird IP address of 10.0.0.1 or something with a Netmask of 255.255.255.0????
What the hell does this IP mean???
|
|
|
02-27-2005, 05:42 PM
|
#25
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
Right now, everything seems to be fine. But why is the 127.0.0.1 keeps appearing?
I tried opening the /sbin/dhclient directory on gedit, but Unable to Open because some UTF-8 coding problem and I was trying to open a binary file.
/etc/dhcpd.conf is not in the GEDIT also....
But if I do find those, how should I edit those???
Correct me if Im wrong, but maybe Im running a lame version or corrupted Linux distro
Last edited by wardialer; 02-27-2005 at 05:50 PM.
|
|
|
02-27-2005, 05:57 PM
|
#26
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
Here are my current LAN Configuration settings under the LAN Configuration Panel Window:
IP address: blank
Netmask: blank
Boot protocol: dhcp
Started on Boot: yes
DHCP client: blank
But now everything seems OK
Ok I got DISCONNECTED AGAIN, but this this time I went through the settings under the Wizard and heres what I did and I got it to work again.
Expert Mode: yes
use PPPoE
It detected my DNS IP addresses my Username/password for ISP
Then, I selected Use Automatic IP
Then it worked.
Last edited by wardialer; 02-27-2005 at 06:00 PM.
|
|
|
02-27-2005, 06:41 PM
|
#27
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
Everything is working great. Since I booted up my PC again.
Now could you please tell me how to prevent the nameserver 127.0.0.1 from re-appearing in resolv.conf??? Thats all I have to do now. Thats it.
I hope this is an easy fix.
|
|
|
02-28-2005, 01:02 AM
|
#28
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
i would appreciate you if you could answer this question.
How could I prevent the nameserver=127.0.0.1 from re-appearing again??? Thats all I want for crying out loud. I mean really....
|
|
|
All times are GMT -5. The time now is 12:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|