Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.