LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-18-2004, 08:58 PM   #1
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Rep: Reputation: 30
resolv.conf


I go in and I edit my resolv.conf file, to this:
nameserver 192.168.1.1

# ppp temp entry

I reboot and it ends up at this:
nameserver 127.......... (the ip addy for localhost I sort of forgot it for now)
nameserver 192.168.1.1

# ppp temp entry



I uninstalled everything having to do with DHCP. I use static IP addresses on my network.
What did I do wrong?
 
Old 10-18-2004, 09:15 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
What is the output of ifconfig -a

You don't have to reboot. Whcih distro are you using?
 
Old 10-18-2004, 09:33 PM   #3
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by darthtux
What is the output of ifconfig -a

You don't have to reboot. Whcih distro are you using?

Oops, I'm using Mandrake 10, sorry.

ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0F:EA:37:53:FE
inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20f:eaff:fe37:53fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:363 errors:0 dropped:0 overruns:0 frame:0
TX packets:313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:181614 (177.3 Kb) TX bytes:51918 (50.7 Kb)
Interrupt:18 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:148 errors:0 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9944 (9.7 Kb) TX bytes:9944 (9.7 Kb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
 
Old 10-18-2004, 09:57 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Are you able to browse the internet? It looks like eh0 is working.
 
Old 10-18-2004, 10:10 PM   #5
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by darthtux
Are you able to browse the internet? It looks like eh0 is working.

Yes, but bringing up webpages is really, really slow.
Why would it put localhost as a dns server?
 
Old 10-18-2004, 10:16 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
It will be slow since it is looking to localhost 127.0.0.1 first. Did you install bind or a dns server and have it running? Mandrake has some control center would you can see the services. Though I'm not familiar with the Mandrake gui.

You might do a
ps aux | grep named
 
Old 10-19-2004, 04:40 PM   #7
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by darthtux
It will be slow since it is looking to localhost 127.0.0.1 first. Did you install bind or a dns server and have it running? Mandrake has some control center would you can see the services. Though I'm not familiar with the Mandrake gui.

You might do a
ps aux | grep named
I uninstalled everything with dns in it. Bind is gone too. I never installed it to begin with. I'm not sure where to go from here.
 
Old 10-19-2004, 06:22 PM   #8
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
You can manually edit the /etc/resolv.conf to reflect your ISP's DNS servers.

This would give you much better performance.

However you may find that upon every reboot the settings will revert back to what they were set to before.

Instead re-edit the NIC settings in the MCC and add the ISP's DNS as required.
 
Old 10-19-2004, 08:29 PM   #9
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by opjose
You can manually edit the /etc/resolv.conf to reflect your ISP's DNS servers.

This would give you much better performance.

However you may find that upon every reboot the settings will revert back to what they were set to before.

Instead re-edit the NIC settings in the MCC and add the ISP's DNS as required.
Yes, thats what I do. I edit the resolv.conf and it reverts back to the incorrect settings.
 
Old 10-19-2004, 08:33 PM   #10
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
You might checkout resolvconf
man resolvconf
 
Old 10-19-2004, 08:49 PM   #11
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by darthtux
You might checkout resolvconf
man resolvconf
man resolvconf
No manual entry for resolvconf



and here are all the processes;
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1580 516 ? S Oct18 0:03 init [5]
root 2 0.0 0.0 0 0 ? SWN Oct18 0:00 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? SW< Oct18 0:00 [events/0]
root 4 0.0 0.0 0 0 ? SW< Oct18 0:00 [kblockd/0]
root 5 0.0 0.0 0 0 ? SW Oct18 0:00 [kapmd]
root 6 0.0 0.0 0 0 ? SW Oct18 0:00 [pdflush]
root 7 0.0 0.0 0 0 ? SW Oct18 0:00 [pdflush]
root 8 0.0 0.0 0 0 ? SW Oct18 0:00 [kswapd0]
root 9 0.0 0.0 0 0 ? SW< Oct18 0:00 [aio/0]
root 11 0.0 0.0 0 0 ? SW Oct18 0:00 [kseriod]
root 19 0.0 0.0 0 0 ? SW Oct18 0:00 [kjournald]
root 117 0.0 0.1 2036 1204 ? S Oct18 0:00 devfsd /dev
root 208 0.0 0.0 0 0 ? SW Oct18 0:00 [khubd]
root 517 0.0 0.0 0 0 ? SW Oct18 0:00 [kjournald]
root 648 0.0 0.0 0 0 ? SW Oct18 0:00 [knodemgrd_0]
root 890 0.0 0.0 1652 548 ? S Oct18 0:00 /sbin/ifplugd -w -b -i eth0
rpc 967 0.0 0.0 1712 580 ? S Oct18 0:00 portmap
root 981 0.0 0.0 1640 632 ? S Oct18 0:00 syslogd -m 0 -a /var/spool/postfix/dev/root 989 0.0 0.1 2604 1540 ? S Oct18 0:00 klogd -2
root 1028 0.0 0.0 1712 712 ? S Oct18 0:00 rpc.statd
xfs 1383 0.0 0.3 5120 3512 ? S Oct18 0:00 xfs -port -1 -daemon -droppriv -user xfroot 1437 0.0 0.2 8356 2144 ? S Oct18 0:00 /usr/bin/gdm-binary -nodaemon
daemon 1456 0.0 0.0 1616 536 ? S Oct18 0:00 /usr/sbin/atd
root 1507 0.0 0.1 3152 1416 ? S Oct18 0:00 /usr/sbin/sshd
daemon 1528 0.0 0.0 1740 668 ? S Oct18 0:00 tmdns
root 1548 0.0 0.3 9356 3220 ? S Oct18 0:00 /usr/bin/gdm-binary -nodaemon
root 1549 0.0 2.1 154636 19492 ? SL Oct18 0:14 /etc/X11/X :0 -audit 0 -deferglyphs 16
root 1557 0.0 0.0 2168 888 ? S Oct18 0:00 xinetd -stayalive -reuse -pidfile /var/root 1585 0.0 0.2 5364 2084 ? S Oct18 0:00 cupsd
root 1836 0.0 0.1 2884 1088 ? S Oct18 0:00 /usr/lib/postfix/master
postfix 1848 0.0 0.1 3004 1188 ? S Oct18 0:00 qmgr -l -t fifo -u -c
postfix 1849 0.0 0.1 4244 1536 ? S Oct18 0:00 tlsmgr -l -t fifo -u -c
root 1883 0.0 0.0 1624 624 ? S Oct18 0:00 crond
root 2031 0.0 0.0 1568 448 tty1 S Oct18 0:00 /sbin/mingetty tty1
root 2032 0.0 0.0 1568 448 tty2 S Oct18 0:00 /sbin/mingetty tty2
root 2033 0.0 0.0 1568 448 tty3 S Oct18 0:00 /sbin/mingetty tty3
root 2034 0.0 0.0 1568 448 tty4 S Oct18 0:00 /sbin/mingetty tty4
root 2035 0.0 0.0 1568 448 tty5 S Oct18 0:00 /sbin/mingetty tty5
root 2036 0.0 0.0 1568 448 tty6 S Oct18 0:00 /sbin/mingetty tty6
postfix 7983 0.0 0.1 2972 1156 ? S 20:10 0:00 pickup -l -t fifo -u -c -o content_filtjustin 8060 0.2 1.0 16760 9288 ? S 21:45 0:00 gnome-session
justin 8096 0.0 0.0 2820 872 ? S 21:45 0:00 /usr/bin/ssh-agent -- /etc/X11/xdm/Xsesjustin 8165 0.0 0.1 2524 1188 ? S 21:45 0:00 /bin/sh /etc/gnome/gnomerc
justin 8166 0.2 1.4 18736 12788 ? S 21:45 0:00 /usr/bin/perl /usr/bin/mdkapplet --autojustin 8168 0.4 2.7 27136 24944 ? S 21:45 0:00 /usr/lib/gconfd-2 5
justin 8171 0.0 0.2 5012 2628 ? S 21:45 0:00 /usr/lib/bonobo-activation-server --ac-justin 8175 0.0 0.2 8100 2712 ? S 21:45 0:00 gnome-smproxy --sm-config-prefix /.gnomjustin 8177 0.1 0.7 15772 7188 ? S 21:45 0:00 gnome-settings-daemon --oaf-activate-iijustin 8179 0.0 0.1 2868 1420 ? S 21:45 0:00 fam
justin 8187 0.0 0.2 4848 2196 ? S 21:45 0:00 xscreensaver -nosplash
justin 8193 0.1 0.8 11416 7316 ? S 21:45 0:00 metacity --sm-save-file 1097722784-2246justin 8203 0.4 1.7 23704 15916 ? S 21:45 0:00 nautilus --sm-config-prefix /nautilus-Cjustin 8205 0.3 1.3 18684 12056 ? S 21:45 0:00 gnome-panel --sm-config-prefix /gnome-pjustin 8210 0.0 0.7 21436 6848 ? S 21:45 0:00 /usr/lib/evolution/1.4/evolution-alarm-justin 8217 0.0 0.4 10444 4468 ? S 21:45 0:00 /usr/bin/pam-panel-icon --sm-client-id
justin 8219 0.0 0.6 14620 6204 ? S 21:45 0:00 magicdev --sm-config-prefix /magicdev-wjustin 8221 0.0 0.4 10444 4468 ? S 21:45 0:00 /usr/bin/pam-panel-icon --sm-client-id
justin 8223 0.2 1.0 16464 9356 ? S 21:45 0:00 /usr/lib/wnck-applet --oaf-activate-iidroot 8226 0.0 0.0 1616 520 ? S 21:45 0:00 /sbin/pam_timestamp_check -d root
root 8227 0.0 0.0 1616 520 ? S 21:45 0:00 /sbin/pam_timestamp_check -d root
justin 8231 0.0 0.7 15052 7128 ? S 21:45 0:00 /usr/lib/notification-area-applet --oafjustin 8233 0.0 0.8 15220 7416 ? S 21:45 0:00 /usr/lib/mixer_applet2 --oaf-activate-ijustin 8237 0.6 1.3 20936 12464 ? R 21:45 0:00 /usr/bin/gnome-terminal
justin 8238 0.0 0.0 2060 624 ? S 21:45 0:00 gnome-pty-helper
justin 8239 0.0 0.1 2732 1560 pts0 S 21:45 0:00 bash
root 8272 0.0 0.1 2444 1024 pts0 S 21:46 0:00 su
root 8275 0.0 0.1 2736 1568 pts0 S 21:46 0:00 bash
root 8312 0.0 0.0 2424 784 pts0 R 21:47 0:00 ps aux
 
Old 10-19-2004, 09:02 PM   #12
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
If it is happening when you reboot, then it is in the boot scripts. You might grep for resolv.conf, 127.0.0.0, etc. in whatever directory Mandrake keeps its scripts.
 
Old 10-19-2004, 09:10 PM   #13
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Snump:

Yes, this is correct.

The scripts which bring up the network interfaces modify the /etc/resolv.conf file at boot time to reflect the information given to the interface by the DHCP server.

If you want to avoid this you must either provide specific DNS IP's for your interface in it's configuration or set the interface for static IP's and do the same.

Correct the DNS settings in the MCC.
 
Old 10-19-2004, 10:07 PM   #14
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
I think I understand.
I went into the hardware area, and reconfigured the settings for the realtek ethernet card.

The problem now, when the system restarted it says it can't start the X windows system. I didn't realize messing with an internet setting could kill my Gnome settings.
 
Old 10-19-2004, 10:13 PM   #15
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Ok great, you are closer now.

X probably didn't start because it does rely upon ethernet settings to establish some permissions.

Log in as root and see if you can't get X to run by itself.

E.G.

[root]# service dm stop

OK

[root]# X

If you see a graphical screen, all should be fine...

If you do not see a graphical screen with a movable mouse then you will need to run XFDrake again to re-configure X.

Make sure that X works by testing the configuration.

Once done, type

service dm start
 
  


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
resolv.conf albundy Linux - Software 5 12-14-2004 03:12 PM
resolv.conf jmdlcar Slackware 9 05-15-2004 11:44 AM
resolv.conf ricemark20 Linux - Networking 12 11-11-2003 04:08 PM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 12:00 PM
resolv.conf Culbert Linux - Networking 8 03-20-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:47 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
Open Source Consulting | Domain Registration