LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2004, 12:50 PM   #1
linuxjustin
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
ping: unknown host in local intranet - HELP


I have 2 computers with RH9
One is a gateway
And I am trying to set the other computer as the DNS server.

My first priorty is to setup the DNS SERVER as a local DNS server.

---------------------------
GATEWAY Information
---------------------------
IP - 192.168.0.1
Hostname - gw.myintranet.local
Iptables enabled and all policies are ACCEPT

resolv.conf in GATEWAY: (not sure if this is important)
search ns.myintranet.local
nameserver 192.168.0.2

hosts.conf in GATEWAY: (not sure if this is important)
127.0.0.1 localhost.localadmin localhost

----------------------------
DNS SERVER information
----------------------------
IP - 192.168.0.2
Hostname - ns.myintranet.local

resolv.conf in DNS SERVER:
search ns.myintranet.local
nameserver 192.168.0.2

hosts.conf in DNS SERVER:
127.0.0.1 localhost.localadmin localhost
192.168.0.2 ns.myintranet.local ns

I am able to ping from both computers to each other using the ip address. But I want to be able to ping FROM the GATEWAY TO the DNS SERVER using the name ns.myintranet.local

Currently "ping ns.myintranet.local" in GATEWAY gives me
ping: unknown host ns.myintranet.local

Please help.

(Adding 192.168.0.2 ns.myintranet.local ns in hosts file in GATEWAY solves the problem, but that is like duplicating the hosts information everywhere, which i want to avoid.)

Last edited by linuxjustin; 04-04-2004 at 01:40 PM.
 
Old 04-04-2004, 12:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the basic logic there basically makes sense, however as you've not mentioned it at all i'm left wondering if you've actually installed a dns server at all? if you want a machine to act as a DNS server, then it kinda needs DNS serving software on it...

personally i'd recommend using http://thekelleys.org.uk/dnsmasq
 
Old 04-04-2004, 01:06 PM   #3
linuxjustin
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Hi acid_kewpie

DNS SERVER is running named.

ps -aux|grep "named" returns the fllowing

named 3246 0.0 0.8 29708 1088 ? S 08:05 0:00 [named]
root 4144 0.0 0.0 172 16 pts/1 R 11:59 0:00 grep named

So I believe dns (named) is running.

So why am i getting unknown host error?

Last edited by linuxjustin; 04-04-2004 at 01:09 PM.
 
Old 04-04-2004, 02:03 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the next stage would be because you've not configured it correctly. but as you've not told us what the config is i couldn't tell you...
 
  


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
ping: unknown host www.google.com tcma Linux - Networking 7 03-02-2012 11:47 PM
Unknown Local Host MizEllyRolls Linux - Security 3 09-14-2005 08:32 PM
Resolver problem: ping localhost.localdomain gives Unknown host rmd Linux - Networking 0 11-06-2003 07:58 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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