|
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.
|