View previous topic :: View next topic |
Author |
Message |
Strayer Tux's lil' helper
Joined: 11 Nov 2003 Posts: 75 Location: Germany
|
Posted: Sun Jan 18, 2004 4:24 pm Post subject: DNS Problems - Windows works, Gentoo not. [SOLVED] |
|
|
Well, after configuring the Kernel PPPoE thing with ppp everything works. ...nearly everything.
I use a Gentoo PC as a Router/Webserver. I configured the Windows PC to use the T-Online DNS Servers and the Gentoo Gateway and everything works.
On the Router I cannot ping ANY DNS.
Quote: | router root # cat /etc/resolv.conf
212.185.248.116
194.25.2.129
router root # ping www.gentoo.org
ping: unknown host www.gentoo.org
router root # ping 212.185.248.116
PING 212.185.248.116 (212.185.248.116) 56(84) bytes of data.
64 bytes from 212.185.248.116: icmp_seq=1 ttl=251 time=19.4 ms
64 bytes from 212.185.248.116: icmp_seq=2 ttl=251 time=20.5 ms
--- 212.185.248.116 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 19.483/20.040/20.597/0.557 ms
router root #
|
As I said, Windows uses the same DNS Servers and works perfectly. I can ping every DNS.
Well, I could acceppt these "little error" cause everything works on my Windows Workstation. But that sucks:
The strange thing is, that he doesn't have a TimeOut time or something like that. When I type ping www.heise.de - ENTER - ping: unknown host [...] appears IMMEDIATLY!
rp-pppoe worked before.
Last edited by Strayer on Sun Jan 18, 2004 4:53 pm; edited 1 time in total |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Jan 18, 2004 4:30 pm Post subject: |
|
|
What does the Gentoo routing table say ?
|
|
Back to top |
|
|
Strayer Tux's lil' helper
Joined: 11 Nov 2003 Posts: 75 Location: Germany
|
Posted: Sun Jan 18, 2004 4:33 pm Post subject: |
|
|
Code: | router root # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
217.5.98.27 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
207.170.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 217.5.98.27 0.0.0.0 UG 0 0 0 ppp0
router root #
|
ifconfig if you need it too:
Code: | router root # ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:7D:FB:7D:DA
inet addr:207.170.82.202 Bcast:207.0.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14386 errors:0 dropped:0 overruns:0 frame:0
TX packets:8800 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17362409 (16.5 Mb) TX bytes:704568 (688.0 Kb)
Interrupt:10
eth1 Link encap:Ethernet HWaddr 00:40:F4:6F:1F:C3
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10206 errors:0 dropped:0 overruns:0 frame:0
TX packets:15353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:779564 (761.2 Kb) TX bytes:17351886 (16.5 Mb)
Interrupt:11 Base address:0x2000
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:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6568 (6.4 Kb) TX bytes:6568 (6.4 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:217.84.208.135 P-t-P:217.5.98.27 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1624 errors:0 dropped:0 overruns:0 frame:0
TX packets:1173 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1566794 (1.4 Mb) TX bytes:164277 (160.4 Kb)
router root #
|
|
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Jan 18, 2004 4:41 pm Post subject: |
|
|
My, you're quick!
Well, the routing table seems fine.
You use NAT to route the Windoze workstation over the Gentoo box - how ?
It seems hardly likely that a misconfiguration in iptables will cause the gateway to fail but the NATted hosts to succeed... it's usually the other way around
Other things to try:
- traceroute from both the WS and gentoo to a known IP address (since a DNS name will obviously not work)
- if you have it, use "dig" to get more info on those nameservers (it's either in bind-tools or such or in the bind package itself).
- Something wrong with your "hosts" file?
Even though you have set up your resolv.conf correctly, on a default setup the system will still use the hosts file first.
- ARE you running a local nameserver ? My first guess would be not, but then again...
Tell me what you find! |
|
Back to top |
|
|
elzbal Guru
Joined: 31 Aug 2002 Posts: 364 Location: Seattle, WA, USA
|
Posted: Sun Jan 18, 2004 4:49 pm Post subject: |
|
|
Your /etc/resolv.conf looks like this (as stated above):
Code: | router root # cat /etc/resolv.conf
212.185.248.116
194.25.2.129 |
It really needs to look like this (note the 'nameserver' keyword):
Code: | router root # cat /etc/resolv.conf
nameserver 212.185.248.116
nameserver 194.25.2.129 |
Cheers! |
|
Back to top |
|
|
Strayer Tux's lil' helper
Joined: 11 Nov 2003 Posts: 75 Location: Germany
|
Posted: Sun Jan 18, 2004 4:51 pm Post subject: |
|
|
Okay, I had the idea with iptables too. But it seems to be correct:
http://home.arcor.de/nethvaethor/files/firewall
Second thing:
Gentoo (I don't know the Linux Trace Command, maybe it's one of them):
Code: | router root # trace
tracepath tracepath6 traceroute6
router root # traceroute6 195.66.242.4
traceroute: unknown host 195.66.242.4
router root # tracepath 195.66.242.4
1: send failed
Resume: pmtu 65535
router root # tracepath6 195.66.242.4
socket: Address family not supported by protocol
router root #
|
btw: Ping thing works:
Code: | router root # ping 195.66.242.4
PING 195.66.242.4 (195.66.242.4) 56(84) bytes of data.
64 bytes from 195.66.242.4: icmp_seq=1 ttl=59 time=259 ms
64 bytes from 195.66.242.4: icmp_seq=2 ttl=59 time=157 ms
--- 195.66.242.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 157.819/208.785/259.752/50.968 ms
router root #
|
Windows PC:
Code: | Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\Dokumente und Einstellungen\Strayer>tracert 195.66.242.4
Routenverfolgung zu owl.gentoo.org [195.66.242.4] über maximal 30 Abschnitte:
1 <10 ms <10 ms <10 ms router.nowhere.cxo [192.168.1.1]
2 210 ms 321 ms 240 ms 217.5.98.27
3 250 ms 301 ms 120 ms 217.237.160.150
4 100 ms 40 ms 40 ms LINX-gw12.LON.GB.NET.DTAG.DE [62.154.15.154]
5 40 ms 50 ms 140 ms collector.linx.net [195.66.225.254]
6 130 ms 40 ms 130 ms fa1-0.tr3.tcm.linx.net [195.66.248.244]
7 291 ms 190 ms 210 ms owl.gentoo.org [195.66.242.4]
Ablaufverfolgung beendet.
C:\Dokumente und Einstellungen\Strayer> |
That's www.gentoo.org's IP
Third thing:
Hosts File (Gentoo):
Code: | router root # cat /etc/hosts
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.7 2002/11/18 19:39:22 azarah Exp $
#
127.0.0.1 localhost
192.168.1.1 router router.nowhere.cxo
192.168.1.2 bit
router root #
|
Windows:
Code: | # Copyright (c) 1993-1999 Microsoft Corp.
#
# Dies ist eine HOSTS-Beispieldatei, die von Microsoft TCP/IP
# für Windows 2000 verwendet wird.
#
# Diese Datei enthält die Zuordnungen der IP-Adressen zu Hostnamen.
# Jeder Eintrag muss in einer eigenen Zeile stehen. Die IP-
# Adresse sollte in der ersten Spalte gefolgt vom zugehörigen
# Hostnamen stehen.
# Die IP-Adresse und der Hostname müssen durch mindestens ein
# Leerzeichen getrennt sein.
#
# Zusätzliche Kommentare (so wie in dieser Datei) können in
# einzelnen Zeilen oder hinter dem Computernamen eingefügt werden,
# aber müssen mit dem Zeichen '#' eingegeben werden.
#
# Zum Beispiel:
#
# 102.54.94.97 rhino.acme.com # Quellserver
# 38.25.63.10 x.acme.com # x-Clienthost
127.0.0.1 localhost
192.168.1.1 router.nowhere.cxo router |
|
|
Back to top |
|
|
Strayer Tux's lil' helper
Joined: 11 Nov 2003 Posts: 75 Location: Germany
|
Posted: Sun Jan 18, 2004 4:53 pm Post subject: |
|
|
elzbal wrote: | Your /etc/resolv.conf looks like this (as stated above):
Code: | router root # cat /etc/resolv.conf
212.185.248.116
194.25.2.129 |
It really needs to look like this (note the 'nameserver' keyword):
Code: | router root # cat /etc/resolv.conf
nameserver 212.185.248.116
nameserver 194.25.2.129 |
Cheers! |
Ha! I didn't even recognized this!
Thanks alot, I'm blind
Works now! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Jan 18, 2004 5:38 pm Post subject: |
|
|
Blindness is in the eye of the beholder |
|
Back to top |
|
|
|