DNS Setup Using BIND 9
I need to set up DNS for my Apache server. I have set up Bind 9 and made NS and Master Records but unable to access page on client machine's browser using hostname (but i can access pages using ip address of server). More over i can access the apache server pages using ip address and even hostname in the server machine.
Is there anything else to set up so that DNS work for client machines also.
Depends, where these clients come from:
- internet: you need to register a domain. In that process, DNServers need to be defined.
- internal net: a) either an official domain like above, or b) the clients need to know which DNS to ask.
I am trying for internal net.
How to do that?
Is there anything to do on client machines.
Or simply accessing on web browser of clients will do??
There are 2.5 ways:
1) The clients already have at least one nameserver defined, either manually or via dhcp.
1a) add your zone/hosts to those existing nameserver(s), remove the bind from your webserver machine.
1b) add a zone delegation to the already existing nameserver(s) and point them to the bind on your webserver machine.
2) replace all entries for nameserver on the clients and point them to the bind on your webserver machine.
You need to make sure, you dont break existing resolving here, be it other internal zones or for the internet.
I would probably go for 1a), but it also depends on how your network looks like.
1(a)Option seems Ok to Me also.
But why to remove BIND from webserver? Do u mean uninstall from webserver?
Then how DNS will work? As it is installed on webserver machine.
For 1a) the already existing ns will serve your new zone/hosts.
So no need for another nameserver on the same machine as the webserver.
The problem is solved. The solution was obvious. The client machines need to know which DNS ip to ask for.
Now can you suggest best way how i can make all clients to know which DNS to use?
Is there only one to manually enter at each client machine my DNS ip?
Is there any other ways ?
Usually the dns server(s) (along with default gateway, IP, netmask and possibly others) are centrally managed and distributed via dhcp.
Thanks for replies.
Originally Posted by Irithori
I agree and understood that it is DHCP server through which i can assign all networking parameters to a machine.
Now my query is that is there any Robust DHCP servers in opensource. Please give some help to setup the same.
There are several, ISCs is probably the most well known.
DHCP | Internet Systems Consortium
It is quite configurable and has good documentation and examples.