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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Suggested Courses

752 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