DNS on Intranet

Posted on 2003-03-14
Medium Priority
Last Modified: 2013-12-24
I've just installed Red Hat 8.0 with Apache to use as an internal web server.
We're all on 192.168.0.xxx but I'd like the user to type in intranet.companyweb to access the site.
You can reach it by typing in the IP address, so it works but I'd just like it to look nicer.
Red Hat has Domain Naming Services program but I'm having difficulty with it.
Can I set internal domain names?
I've done some reading about DNS and BIND and Forward Zone and Reverse Zone, etc. but nothing that tells
me if I can set this up internally.
Question by:socrateez
  • 2
LVL 11

Accepted Solution

ICaldwell earned 100 total points
ID: 8145678
socrateez this is easy, ok internal networks are just like the internet.  What you need to do is first install bind from http://www.isc.org/products/BIND/.  After you install it you need to edit you should have an example named.conf file.  You may need to change the name of it and edit it.  Make sure
zone "." {type hint; file "db.cache"; };
is near the bottom of the file if you want to use the internet as well as your internal webserver on this dns server.  This allows your dns to forward to the root servers for dns's not located on your computer.  If youw ant this make sure you also create a file named db.cache and put in the info found on this page -> http://www.openna.com/documentations/articles/bind/part5.php

Now add the following line to named.conf at the end
zone "companyweb.com" {type master; file "db.companyweb.com"; };
save and close and creat a file named db.companyweb.com.  In this file add the following
;example of forward zone file: anydomain.com
$TTL 86400
@ SOA ns1.companyweb.com. email.companyweb.com. (
 2001060101     ; zone serial number in ccyymmddxx format
 3600          ; slave polls master for SOA/serial number
 1800          ; slave re-polls unreachable master
 864000          ; slave expires zone after master unreachable
 3600           ; TTL for negative answers
@ NS     ns1.companyweb.com.
localhost A
intranet  192.168.xx.xx     ;  // internal ip of server

Ok now run the server by /etc/init.d/named start

Now all your computers on your network have to set their dns server as your redhat server ip.  Now on your computers access your domain and it should work.  

If you are confused I recommend you go to http://www.openna.com/documentations/articles/bind/
this shows you a step by step Build, Install, Secure & Optimize BIND & DNS

Hope this helps

Author Comment

ID: 8198595
Thanks for the link and the information.  So I'm setting this Redhat Server up as a slave zone?  Can I set it up as a tertiary dns server on the other computers and let the primary and secondary dns servers stay the same?
Another solution that I've thought of is using SAMBA and WINS so the user would just have to type in http://intranet/ to access the website.  Does this make sense?
I've accepted the answer lCaldwell, it's useful information,  but I don't want everybody to have to go through the Redhat server for DNS, I just want them to go to the Redhat server when they type in "intranet".
There are some other specifics that I haven't mentioned, so it's my fault for not getting a complete answer. If you want to I can give more specifics so you can recommend best practice, either way thanks!
LVL 11

Expert Comment

ID: 8203999
An easier way to do that would be to edit your host file

win98 location c:\windows\system\hosts (I think)
win2k location c:\winnt\system32\drivers\etc\hosts
winxp location c:\windows\system32\drivers\etc\hosts

and put in the following lines

#ip of redhat server         server name                  Intranet

this is a little easier then WINS but more importantly is something that will not go down.  Sometimes the client times out on a wins server and does not have the server name cached.  When this happens the computer acts like the server does not exist on the network, using hosts will fix this possible issue.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This program is used to assist in finding and resolving common problems with wireless connections.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question