LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2009, 05:41 PM   #1
kksk
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
Question nslookup issue -URGENT help needed


my machine name = mybox
i need mybox to be resolved to ipadress which it is assigned i.e. 192.168.1.110
but nslookup goes out on internet and searches it and timesout.
I have put same info in etc hosts file also but no luck.
even when i disconnect from internet, it does not resolv the machine to that ip

OS= ubuntu

Thanks in advance
 
Old 10-03-2009, 05:53 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Edit /etc/nsswitch.conf and make sure that you have a line for "hosts' like this:
Code:
hosts:  files dns
 
Old 10-03-2009, 05:58 PM   #3
kksk
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Edit /etc/nsswitch.conf and make sure that you have a line for "hosts' like this:
Code:
hosts:  files dns
I checked it looks like below. looks ok to me.

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
 
Old 10-03-2009, 06:05 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Leave only
Code:
hosts:  files dns
to see if it works and then read this if you want to use mdns.

Regards
 
Old 10-03-2009, 08:12 PM   #5
kksk
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Leave only
Code:
hosts:  files dns
to see if it works and then read this if you want to use mdns.

Regards
I tried this ...its not working.
rebooted my pc also.
 
Old 10-03-2009, 09:38 PM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
I see you are using a router. If you have a fire wall up make sure you have the right ports open.
 
Old 10-03-2009, 09:54 PM   #7
freelinuxtutorials
Member
 
Registered: Oct 2009
Posts: 70

Rep: Reputation: 21
if you already put the domain name and the corresponding IP address on your hosts file, can it resolve the domain name now?
what service are you trying to access that machine?is it http?ssh?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent help needed krisrae675 Linux - Newbie 4 07-26-2009 12:43 PM
Urgent help needed! Please!!! RobynD Linux - Newbie 6 11-03-2007 11:29 AM
Urgent - Help Needed rigel_kent Linux - General 1 07-21-2005 09:20 AM
Please Urgent Help Needed Here !!! dezeque Linux - General 6 05-26-2005 04:37 PM
Urgent Help Needed rankxeros Linux - Security 5 03-08-2004 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 PM.

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