Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird DNS (?) behaviour
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
jalonsom
n00b
n00b


Joined: 31 Oct 2004
Posts: 2

PostPosted: Sun Oct 31, 2004 10:59 am    Post subject: Weird DNS (?) behaviour Reply with quote

Hello everybody.

I'm totally new to Linux and I've tried this week to install a system without success.
The main problem is with network. I have tried to do a net install with many flavours of Debian and a regular (CD) install with Ubuntu, and then tried GENTOO as it seemed to give me a lot of control over the installation process, but the network behaved in a strange way In all cases except with Knoppix Live CD, where there was no problem at all.

What I first noticed is that during Debian netinstall, I couldn't configure apt properly, since the installer couldn't connect to any server, giving a "network unreachable (1.0.0.0)" message.
Then I realized that with some CD images (test, I believe) I had an option to run a command line during install, so I did a ping to a few of those servers... Surprise! ping was successful! But there's more: after doing a ping to a certain server, apt could connect to it by its name!!!!, but only for a little time, after reboot it couldn't.
Even with some netinstall images (tiny test ones, I think) the installer could be downloaded from the net without doing the ping trick, but after the first reboot thing went as I explained before when getting to apt config.

The thing is that before giving up completely the whole Linux thing, I decided to try Knoppix and Ubuntu.
Ubuntu install CD failed exactly as Debian, so I decided to test the Ubuntu Live CD.
To my surprise, even if the two of them are Debian-based, there were no network problems with Knoppix, but there were strange ones with Ubuntu Live CD:
I could ping on terminal any address (IP or name), and could access internet from applications (Firefox browser, Gaim...), but only with IP, there seemed to be no name resolving.

With GENTOO (both LiveCD and Installed): Same as Debian and Ubuntu:
I can ping everywhere,
I can surf with links everywhere,
BUT: emerge gets no proper DNS, it gets (1.0.0.0) for every server name, UNLESS I ping it just before, or UNLESS I add the entry to /etc/hosts.
I have the 8139too module loaded properly, as reported by lsmod, and lspci reports a RLT-8139 net card.

Do you see any explanation? (resolv.conf is OK, and with correct permissions).

It's a shame, I can imagine lots of people giving up and going back to windows because of so many installation/configuration problems..

THANK YOU.


# ip route
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.2
default via 10.0.0.1 dev eth0


ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:C0:89:3D
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:fcff:fec0:893d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2275 (2.2 KiB) TX bytes:2141 (2.0 KiB)
Interrupt:11 Base address:0xa000

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:2677 errors:0 dropped:0 overruns:0 frame:0
TX packets:2677 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:197324 (192.6 KiB) TX bytes:197324 (192.6 KiB)


# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
default mygateway 0.0.0.0 UG 0 0 0 eth0
Back to top
View user's profile Send private message
jalonsom
n00b
n00b


Joined: 31 Oct 2004
Posts: 2

PostPosted: Sun Oct 31, 2004 12:58 pm    Post subject: Reply with quote

I only have a good DNS behaviour on knoppix, but only when I boot the 2.4.27 kernel.
If I boot the 2.6 kernel, same behaviour as Debian, Ubuntu & Gentoo.....
Maybe this can be a clue?
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4830
Location: Gothenburg, Sweden

PostPosted: Sun Dec 26, 2004 11:30 pm    Post subject: Reply with quote

Moved from Networking & Security in favour of http://forums.gentoo.org/viewtopic.php?t=219302
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum