Networking Forums

Networking Forums > Computer Networking > Linux Networking > resolv.conf is empty ?

Reply
Thread Tools Display Modes

resolv.conf is empty ?

 
 
subrato
Guest
Posts: n/a

 
      02-05-2006, 04:22 AM
Hi,
I have put a wireless card in my suse linux enterprise box (9) and
am trying to get internet access to it. The lights on the wireless card
are blinking and the card is seen in Yast network. When I try to access
some website, I get

An error occured while loading http://www.somesite.com/
Unknown host www.somesite.com

The resolv.conf is empty. I dont know what to do next with that.. Can
anyone tell me what to do next!!!
Thanks
Subrato

 
Reply With Quote
 
 
 
 
Nicholas DePetrillo
Guest
Posts: n/a

 
      02-05-2006, 04:39 AM
On Sat, 04 Feb 2006 21:22:18 -0800, subrato wrote:

> Hi,
> I have put a wireless card in my suse linux enterprise box (9) and
> am trying to get internet access to it. The lights on the wireless card
> are blinking and the card is seen in Yast network. When I try to access
> some website, I get
>
> An error occured while loading http://www.somesite.com/
> Unknown host www.somesite.com
>
> The resolv.conf is empty. I dont know what to do next with that.. Can
> anyone tell me what to do next!!!
> Thanks
> Subrato


I don't use SUSE so I am not familiar with YAST. Does YAST show that the
wireless card received an IP? If it did and ran DHCP it should have
populated resolv.conf. Sounds to me like either YAST is not using DHCP to
grab an IP (therefore resolv.conf is never populated with a name server),
your router has faulty name server settings (unlikely), or there is some
misconfiguration elsewhere.

If YAST (and ifconfig) shows your wireless card with an IP and resolv.conf
id still empty, you can just put your own name servers in it using the
following syntax:

nameserver xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the IP of your ISP's DNS server.
Good luck!

--
Nick DePetrillo
Network Security Engineer
OSHEAN
PGP Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0x121245B5

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      02-05-2006, 05:18 PM
"subrato" <(E-Mail Removed)> writes:

>Hi,
> I have put a wireless card in my suse linux enterprise box (9) and
>am trying to get internet access to it. The lights on the wireless card
>are blinking and the card is seen in Yast network. When I try to access
>some website, I get


>An error occured while loading http://www.somesite.com/
>Unknown host www.somesite.com


>The resolv.conf is empty. I dont know what to do next with that.. Can
>anyone tell me what to do next!!!


Put your dns server into /etc/resolv.conf. Usually dhcp does it for you but
if not, do it yourself.
nameserver 111.222.333.444
is the format.

>Thanks
>Subrato


 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      02-05-2006, 08:13 PM
"subrato" <(E-Mail Removed)> said:
> I have put a wireless card in my suse linux enterprise box (9) and
>am trying to get internet access to it. The lights on the wireless card
>are blinking and the card is seen in Yast network. When I try to access
>some website, I get
>
>An error occured while loading http://www.somesite.com/
>Unknown host www.somesite.com
>
>The resolv.conf is empty. I dont know what to do next with that.. Can
>anyone tell me what to do next!!!


Play around with the network adapter priorities (which one gets named
eth0, which is eth1, and so on) - it could help.

I've seen a situation where a SuSE system refused to populate resolv.conf
based on DHCP requests received on wire (eth1), because the wlan
(strangely, on eth0) was activated at the time (even though there was no
wlan network accessible at the moment).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
subrato
Guest
Posts: n/a

 
      02-06-2006, 01:39 PM
Nick,
The problem is that when the machine is booted, the initial
screen shows it trying to get a address but it just says that it didnt
find any address, trying to get the ip address in the background. And I
have tried to see if anything is in the logs like if it fails anytime
but I didnt see any error messages about it. It seems like it doesnt
find the dhcp server or the router in this case. I tried to ping, dig,
finger 192.168.1.1 which is the address of the router. With Windows it
pops up an authentication screen. But with linux box, with ping it says
network unreachable. Is it because of WPA security I am using for the
router.
Thanks in advance
Sinbrato

 
Reply With Quote
 
subrato
Guest
Posts: n/a

 
      02-06-2006, 01:41 PM
What entry do I put into it if I am using DSL line. Usually I thought I
wouldnt have to put any entry for the resolv.conf if its not static
address I am connecting to ??
Thanks in advance
Subrato

 
Reply With Quote
 
subrato
Guest
Posts: n/a

 
      02-06-2006, 01:48 PM
My wireless card is getting activated on both eth0 and wifi0. Is that a
problem ? If I have to remove one of the entry , how do you suggest
going about it as I am not really expert in linux world and just trying
to work around things in linux. Also does it have to do anything with
eth0 being wireless card and eth1 being the wired connection point. The
wired connection is not in use. With ifconfig -a it shows eth0 and
wifi0 as the active connections.
Thanks in advance
Subrato

 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      02-06-2006, 02:23 PM
"subrato" <(E-Mail Removed)> said:
>My wireless card is getting activated on both eth0 and wifi0. Is that a
>problem ? If I have to remove one of the entry , how do you suggest
>going about it as I am not really expert in linux world and just trying
>to work around things in linux. Also does it have to do anything with
>eth0 being wireless card and eth1 being the wired connection point. The
>wired connection is not in use. With ifconfig -a it shows eth0 and
>wifi0 as the active connections.


Eek.. that doesn't sound nice; I'd expect to only see either wifi0 or eth0
for a wireless device; not both. Is it also trying to run dhcp
client (dhcpcd) on both interfaces?

If you don't use the wired connection at all, it could be cleanest to
remove it (as well as either of the eth0/wifi0) - but be careful in
what you do, in any case.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd.conf, resolv.conf and the search directive Andy Richardson Linux Networking 4 07-13-2005 08:23 AM
ipv6 and resolv.conf Hans Fugal Linux Networking 0 05-18-2004 04:02 PM
resolv.conf question Geoff Wheeler Linux Networking 1 02-24-2004 09:10 PM
resolv.conf Stephen Speicher Linux Networking 5 12-10-2003 09:00 AM
NIS, DNS and resolv.conf ncrfgs Linux Networking 2 10-02-2003 05:09 PM



1 2 3 4 5 6 7 8 9 10 11