LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-28-2006, 05:18 PM   #1
capnp72
LQ Newbie
 
Registered: Jan 2006
Location: Hampton, VA
Distribution: fedora core 4
Posts: 22

Rep: Reputation: 15
Question unable to resolve ip(have to browse by ip)


I recently installed suse 10. I have an internet connection but I can't browse or connect to gaim. However, if i enter an ip for a website it will open without the graphics. I added the 2 dns from isp into /etc/resolv.conf. Can anyone help me solve this problem?
 
Old 01-28-2006, 05:45 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Sure!

1. Make sure you have lwres installed and running in runlevels 3 and 5
2. In /etc/nsswitch make sure that lwres is entered. See:

Code:
hosts:  lwres files dns
networks:       lwres files dns
 
Old 01-28-2006, 06:36 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What is the "nwres" program? I don't have it on my suse system.

More information would be nice. Apparently static addressing is being used if /etc/resolv.conf is being manually edited rather than being supplied by DHCP. The default gateway on the nics need to be set up also, as well as the route. Also, the firewall could possibly cause problems.

Are you running a service where you need static addressing? How do you connect to the internet? Is your computer connected directly, or is it another computer or a router?
 
Old 01-28-2006, 07:07 PM   #4
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
it's "lwres" not "nwres" first of all.

To answer your question: it's a small part of bind which is used for name resolution.

from the lwresd man page:

Code:
NAME
       lwresd - lightweight resolver daemon

SYNOPSIS
       lwresd [ -C config-file ]  [ -d debug-level ]  [ -f ]  [ -g ]  [ -i pid-file ]  [ -n #cpus
       ]  [ -P port ]  [ -p port ]  [ -s ]  [ -t directory ]  [ -u user ]  [ -v ]

DESCRIPTION
       lwresd is the daemon providing name lookup  services  to  clients  that  use  the  BIND  9
       lightweight  resolver library. It is essentially a stripped-down, caching-only name server
       that answers queries using the BIND 9 lightweight resolver protocol rather  than  the  DNS
       protocol.

       lwresd  listens  for  resolver  queries  on  a  UDP  port  on the IPv4 loopback interface,
       127.0.0.1. This means that lwresd can only be used  by  processes  running  on  the  local
       machine.  By  default  UDP  port  number 921 is used for lightweight resolver requests and
       responses.

       Incoming lightweight resolver requests are decoded by the server which then resolves  them
       using  the  DNS protocol. When the DNS lookup completes, lwresd encodes the answers in the
       lightweight resolver format and returns them to the client that made the request.

       If /etc/resolv.conf contains any nameserver entries, lwresd sends recursive DNS queries to
       those  servers.  This  is similar to the use of forwarders in a caching name server. If no
       nameserver entries are present, or  if  forwarding  fails,  lwresd  resolves  the  queries
       autonomously  starting  at  the  root  name  servers, using a built-in list of root server
       hints.
 
Old 01-29-2006, 02:59 AM   #5
drevil666
Member
 
Registered: Jun 2005
Location: UK
Distribution: Mandrake 10.1 & Fedora
Posts: 32

Rep: Reputation: 15
Can I have some advice on this issue please?

I'm in a similar situation, but have just picked Linux up again after 8 months of being away and my brain has emptied completely!

I too can only browse by IP address but would be really grateful if the script needed to overcome this problem could be provided, email me if you like, but i'd be very grateful, thanks
 
Old 01-29-2006, 07:29 AM   #6
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
You don't need a script. You can use GUI and never have to muss with command line or scripts to set up DNS. All you need is the information(which DNS servers to use) and then you can just put them in the network configuration via YAST.

1) Find ISPs DNS... How to do this?
a) You can check your router, see what it pulled as DNS.
b) You can check your modem and see what DNS you are assigned.
c) You can call your ISP(or check their online gateway) and see if they will tell you DNS locations. Some also give you them in setup guides.

2) Yast > Network Devices > Network Card
a) Assuming you are using 9.1-10.0 it will go right away.
b) Assuming you are using 10.1 you need to select traditional with ifup, not Network Manager.(that is auto config and doesn't allow DNS setup.

3) Select your current Network Card. Choose "Edit" of the bottom buttons.

4) You should see a bunch of settings, and further menu options accessable via buttons. Choose "Hostname and Host Server".

5) There are 2 sections. The first is your domain information, and information about your computer. Like its Name. For instance "Hostname" and "Domain". The second section is Name Servers and Domain Listings. You should see Name Servers(3 of them) and a field either called "Search List" or something else on the right hand side. You need to change the name servers(which you will have to turn on the little manually configure box. You can't pull through DHCP.

6) Set the Nameserver #1 as the primary DNS server your ISP uses. Set the Nameserver #2 as the Secondary DNS server your ISP uses. Set Nameserver #3 as your Router/Gateway/Modem.

7) Make sure the top box on the right in that section is set as "site"

8) OK, NEXT, NEXT...etc Until it configures the settings and runs the little SuSE config stuff.

Let me know if that helps.
 
Old 01-29-2006, 05:03 PM   #7
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 31
Well it's clearly a DNS issue.
Just as a basic troubleshoot, try a "nslookup google.com" from a blank konsole. If no response, you dont have your DNS IP correct. Fix it in, Control Center/Yast Modules/Network Services/DNS and Hostname. In there it should have your hostname, and your dns IP addresses. My dad's computer would prefill it with a bunch of crap automatically for some reason, so I had to manually set the DNS ip's there. Fixed the problem instantly. Hope this helps and makes it a simple solution
 
Old 01-31-2006, 12:35 PM   #8
Agentvenom
Member
 
Registered: Sep 2005
Distribution: PCLinuxOS 2007 / Suse 10.3
Posts: 228

Rep: Reputation: 30
Clearly sounds like a DNS issue to me too. Don't know how much help this is, but you can check /etc/resolv.conf to see what DNS are stored. To add one, you can either use the GUI as has been suggested, or log in as root in the konsole, then type the line:

Code:
route add default gw 192.168.0.1
The ip I've suggested is for my router, just put whatever DNS you want to add in there and viola!

Last edited by Agentvenom; 01-31-2006 at 12:37 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to resolve hostname adirock2 Linux - Networking 14 07-06-2005 02:08 AM
Unable to browse the internet daliernest Linux - Newbie 2 08-12-2004 04:50 PM
unable to resolve dns fivenics3cablem Slackware 7 12-03-2003 03:26 PM
Unable to resolve names Starblade Linux - Networking 1 10-25-2003 02:48 AM
Unable to Browse Sites tanmay_79 Linux - Networking 1 09-05-2002 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration