LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-24-2004, 08:31 PM   #1
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Rep: Reputation: 15
Unhappy nslookup + dig commands


Hello all,

I am trying to install Oracle 9i on my Linux Red Hat Enterprise 3 Server (WS Edition). That is right, WS edition (not ES or AS). I don't know if any one of you has done this before ????

Anyway, I am running into host IP configuration issues. To get a better understanding of the problem I need to run the nslookup command. Problem is, that when I do this is what I get:

1) nslookup
(Note nslookup is deprecated and may be removed from future releases consider using the 'dig' or 'host' programs instead. Run nslookup with the '-sil ent' option to prevent this message from appearing.)

I tried using the 'dig command, but I don't understand the output or how to use it. The dig gives me a parts a QUESTION, ANSWER and ADDITIONAL SECTIONS.

How can I use these commands to resolve my problem ?
Any ideas ?

PT
 
Old 08-24-2004, 09:05 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Use host ;)


Cheers,
Tink
 
Old 08-31-2004, 08:25 AM   #3
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Original Poster
Rep: Reputation: 15
Unhappy host command

Hello again,

Typing some commands, this is what I get:

1) hostname
Linux2005

2) cat /etc/hosts
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network funcitonality will fail.
127.0.0.1 localhost.localdomain localhost

3) nslookup Linux2005
...
Server: 192.9.200.80
Address: 192.9.200.80#53

** server can't find Linux2005: NXDOMAIN

4) host -l Linux2005
;; Connection to 192.9.200.80#53(192.9.200.80) for Linux2005 failed: connection refused.
host -v Linux2005
Trying "Linux2005"
Host Linux2005 not found: 3(NXDOMAIN)
Received 102 bytes from 192.9.200.80#53 in 187 ms

----------
PT

PS: I am getting error messages such as 'Thrown when the IP address of a host cannot be determined' Pop-Up error messages. How can I go about to resolve this issue ?
 
Old 08-31-2004, 09:43 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
probably your hostname is defined in /etc/sysconfig/network, like this:
HOSTNAME=linux2005

some programs search your hostname to connect. if your hostname is not defined, probably like this programs or daemons cannot work. your hostname is not defined in /etc/hosts file.

i advice u to change your /etc/hosts file this:
127.0.0.1 linux2005 localhost.localdomain localhost

let me know if it fixed.
 
Old 08-31-2004, 10:28 AM   #5
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Original Poster
Rep: Reputation: 15
Unhappy /etc/hosts file

Hello,

Should I consider adding an entry to the file as follows:

192.9.200.80 Linux2005

following the first line ??

PT
 
Old 08-31-2004, 10:40 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
u can do. but the software u installed will try to connect to 192.9.200.80 instead of loopback. i dont think it is good idea. loopback is better idea.

if u r sure about 192.2.200.80, u can do it like that :-)
127.0.0.1 localhost.localdomain localhost
192.9.200.80 Linux2005

good luck.
 
Old 08-31-2004, 02:40 PM   #7
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Original Poster
Rep: Reputation: 15
Unhappy Error resolving hostname: localhost

Hello,

During the installation of one of the Oracle 9i components, I get an error message as follows:

The Agent Configuration Assistant gave: No value for the NODEINFO + Starting HTTP Server gave a message: (Error resolving hostname: localhost).

Are these error messages also concerned with the /etc/host file ? Is there something else I should be looking at ?

PT
 
Old 09-01-2004, 02:21 AM   #8
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
im not familiar to oracle. i just know about networking a little

do u have localhost entry in hosts file?
maybe it tres to resolve localhost through nameserver. u can try to run named (bind). named has localhost entries by the default. and change /etc/resolv.conf to use your local nameserver.

[root@teknik root]# cat /etc/resolv.conf
search localhost
nameserver 127.0.0.1
 
Old 09-10-2004, 02:46 AM   #9
Ngoc
LQ Newbie
 
Registered: Sep 2004
Location: Viet Nam
Distribution: Ngoc
Posts: 3

Rep: Reputation: 0
pleaze chow me Edit file resolv.conf or any file in Redhat 9?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
(nslookup) vs (dig and host) emailssent Linux - Networking 7 10-06-2004 08:38 AM
nslookup or dig source code blackzone Linux - Networking 1 07-07-2004 06:53 AM
dig, nslookup rpm ashley7 Linux - Software 0 04-05-2004 08:27 AM
Dig, host, nslookup? gsibble Arch 1 02-03-2004 01:02 PM
DIG / NSLOOKUP message? matrx88 Linux - Networking 1 08-20-2003 12:15 AM


All times are GMT -5. The time now is 09:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration