LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-27-2005, 03:11 PM   #16
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19

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.
 
Old 02-27-2005, 03:29 PM   #17
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19
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.
 
Old 02-27-2005, 03:49 PM   #18
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 02-27-2005, 04:16 PM   #19
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19
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
 
Old 02-27-2005, 04:24 PM   #20
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 02-27-2005, 04:27 PM   #21
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
So, by looking at this, what could be the problem??? Why is it getting stuck or hang on webpages sometimes???
 
Old 02-27-2005, 04:41 PM   #22
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19
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.
 
Old 02-27-2005, 04:47 PM   #23
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19
go to http://www.tldp.org/HOWTO/DHCP/index.html
it will tell you how to set it up properly.
 
Old 02-27-2005, 05:40 PM   #24
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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???
 
Old 02-27-2005, 05:42 PM   #25
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 02-27-2005, 05:57 PM   #26
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 02-27-2005, 06:41 PM   #27
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 02-28-2005, 01:02 AM   #28
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet connection problems drevil666 Linux - Newbie 3 06-29-2005 02:34 PM
problems with internet connection aertim Linux - Wireless Networking 0 12-04-2004 12:16 PM
Internet Connection problems. wo1fz Slackware 6 06-29-2004 04:19 PM
Internet Connection Problems...again! justiceisblind Linux - Newbie 0 04-21-2002 12:38 PM
internet connection problems greatgatsby26 Linux - Networking 4 05-04-2001 08:40 PM


All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration