You are not logged in.

#1 2010-12-05 20:17:01

art84
Member
Registered: 2010-12-05
Posts: 41

[SOLVED] DNS troubles

Hi everyone

I'm new to *nix world, but I'm from IT (developer), so consider me not a complete newbie smile
I decided to dive into Linux 'waters' and I've found Arch Linux to be the best for me.

Let's finish with lyrics.So, I have a fresh Arch 2010.05 Linux (simple console, no X, nothing else).
My troubles are related to network. Basically I have a working network: I can ping IPs from the in-house LAN, I can ping IPs from ISP space and others too. But "ping google.com" or any other domain name says "ping: unknown host google.com" (the same for "wget http://www.google.com/" for example).
I know about /etc/resolv.conf and it is not empty, it contains the following lines:
dns1 172.27.137.10
dns2 172.27.137.20
search doamin.com

I can ping these IPs without problems.

I'm almost sure it's a simple issue, but for a newbie it's like searching for keys having them in the lock.
If someone could help me, I'll be very grateful.
Thank you in avdance.

Last edited by art84 (2010-12-05 21:26:48)

Offline

#2 2010-12-05 20:18:57

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] DNS troubles

I believe there is a syntax error in your resolv.conf
replace the words dns1 dns2 with nameserver and try again

Offline

#3 2010-12-05 20:25:20

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: [SOLVED] DNS troubles

As skunktrader just said it should read,

nameserver 172.27.137.10
nameserver 172.27.137.20

I assume you are not using DHCP as as it would have filled out your DNS server details correctly in /etc/resolv.conf

Offline

#4 2010-12-05 20:56:02

art84
Member
Registered: 2010-12-05
Posts: 41

Re: [SOLVED] DNS troubles

skunktrader and CountDuckula, thank you very much! ... you are prefectly right, "nameserver" made it work correctly
It's a little strange, the template text was saying "dns1" and I've completed with my IPs .. or maybe I've read a wrong howto hmm

But now I have another trouble: the network is working only after I restart the switch.
I know, it seems to be like a hardware issue, but before Arch there was a windows OS on this PC and I could plug in and pull out the LAN cable as I wanted and worked every time without any switch restart.
Any ideas?  or it's very probable to be a hardware issue?  (the NIC is an incorporated one on a AsRock A790GMH: Realtek RTL8111DL)

Offline

#5 2010-12-05 21:01:14

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] DNS troubles

art84 wrote:

But now I have another trouble: the network is working only after I restart the switch.
I know, it seems to be like a hardware issue, but before Arch there was a windows OS on this PC and I could plug in and pull out the LAN cable as I wanted and worked every time without any switch restart.
Any ideas?  or it's very probable to be a hardware issue?  (the NIC is an incorporated one on a AsRock A790GMH: Realtek RTL8111DL)

https://wiki.archlinux.org/index.php/Ne … auto-wired

Offline

#6 2010-12-05 21:25:33

art84
Member
Registered: 2010-12-05
Posts: 41

Re: [SOLVED] DNS troubles

skunktrader, thank you one more time

I've read about "net-auto-wired", but I thought a NIC card must work without any additional installs.
I've tested on a 3com external NIC (an old card, 10+ years) and it works as it should. Maybe it's a special behaviour related to this Realtek RTL8111DL (a new card from 2009).
I'll try the ifplugd package after I'll set up the package repository/mirrors for pacman .. I hope I'll be able to do it for myself smile

Offline

Board footer

Powered by FluxBB