LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-28-2007, 07:32 PM   #1
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Rep: Reputation: 15
no ip from nslookup


Hi, Y'all!

I'm using a Fedora 8 box as a name server. I been on several websites, such as yolinux (http://www.yolinux.com/TUTORIALS/Lin...etworking.html). I can ping a host name but not locate a domain name.

From the name server box, I can ping another server with the host name using:
$ ping snow-white
PING snow-white (192.168.1.51) 56(84) bytes of data.
64 bytes from snow-white (192.168.1.51): icmp_seq=1 ttl=64 time=0.961 ms
64 bytes from snow-white (192.168.1.51): icmp_seq=2 ttl=64 time=0.336 ms
....
....so this tells me that my hosts file is set up correctly.

However I run a ping using a domain name:
$ ping snow-white.toms.net
ping: unknown host snow-white.toms.net
$

Running nslookup on either host or domain name offers no response.

named is running and was restarted. Any other servers that I should check?

/etc/resolve.conf has this...
search tomempire.net
nameserver road-runner

/etc/nsswitch.conf (besides a mess of commented lines) has this...
hosts: files dns

/var/named/chroot/var/named/toms.zone has this excerpt...
$TTL 7200
toms.net. IN SOA ns.toms.net. hostmaster.toms.net. (
2007111218 ; Serial # based on date and hour
3H ; Refresh
15M ; Retry
4H ; Expiry
4H ; Minimum
)
road-runner IN A 192.168.1.31
snow-white IN A 192.168.1.51
@ IN NS road-runner

My DNS GUI utility shows snow-white being 192.168.1.51.

What am I missing???

Thanks!

Tom D.
 
Old 12-29-2007, 01:01 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
Tom,

Looks like you are trying to access a private network using a public domain name. I am not sure that will work.

Thanks,
James Glenn
www.thedonkdonk.net
 
Old 12-31-2007, 07:54 AM   #3
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by thedonkdonk View Post
Tom,

Looks like you are trying to access a private network using a public domain name. I am not sure that will work.
Actually the whole operation is on a private network; no Internet access. So DNS (bind) would not work at all?

Tom D.

Last edited by Tom Douglas; 12-31-2007 at 07:59 AM.
 
Old 12-31-2007, 08:03 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If your domain on your private network is toms.net, you'll probably want to have that as your search in your resolv.conf file:

search toms.net
nameserver [ip-address]

And I always put my nameserver IP address instead of the actual hostname. And you need to choose, either use your /etc/hosts file for dns lookups or use your actual name server, it's not always a good idea to have a mixture of both, it can cause confusion and duplicate work for name resolution.
 
Old 01-01-2008, 03:47 PM   #5
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by trickykid View Post
If your domain on your private network is toms.net, you'll probably want to have that as your search in your resolv.conf file:

search toms.net
nameserver [ip-address]

And I always put my nameserver IP address instead of the actual hostname. And you need to choose, either use your /etc/hosts file for dns lookups or use your actual name server, it's not always a good idea to have a mixture of both, it can cause confusion and duplicate work for name resolution.
OK, I cleaned out the /etc/hosts file and restarted the network service.

Also changed the resolv.conf server name to an IP address.

Made sure named is running....

Code:
[root@road-runner tom]# service named status
version: 9.5.0a6
number of zones: 14
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named (pid  1756) is running...
[root@road-runner tom]#
Still getting "Servers could not be reached" for executing nslookup. This was excuted from the name server box.

The name service GUI utility shows my host domain names and addresses. Any ideas what I'm missing?

A side question from the command prompt above: How would I enable the query logging? (That was why I listed the name server response above.)

Tom D.

Last edited by Tom Douglas; 01-01-2008 at 03:48 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
nslookup phsythax Linux - Software 5 11-19-2005 02:15 AM
Nslookup redhatlover Red Hat 3 05-08-2004 07:25 AM
nslookup on Linux? DarkHorse Linux - Newbie 2 07-15-2003 12:07 AM
nslookup ninen Linux - Software 1 05-23-2003 08:07 PM
NSlookup Nezar Linux - Networking 1 08-05-2001 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:05 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