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? |
What is the output of ifconfig -a
You don't have to reboot. Whcih distro are you using? |
Quote:
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) |
Are you able to browse the internet? It looks like eh0 is working.
|
Quote:
Yes, but bringing up webpages is really, really slow. Why would it put localhost as a dns server? |
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 |
Quote:
|
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. |
Quote:
|
You might checkout resolvconf
man resolvconf |
Quote:
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 |
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.
|
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. |
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. |
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 |
All times are GMT -5. The time now is 04:30 PM. |