Domain name Service for Red Hat 5.1

Posted on 1998-07-29
Last Modified: 2010-03-18
I am trying to setup an intranet using Linux (Red Hat Linux 5.1) as my server and a Power Mac as a client machine. During the installation I assigned a Host name and class C IP address to the machine. I was then asked to assign the Primary server IP address. I used the same IP address assigned for the host, thinking that the host machine will also be the server; moreover I gave the machine a FQDN (i.e., nat for host / nat. I tested the intranet connection by entering the IP address of the server in the browser window on  my Mac and eureka! However, I was unsuccessful when I entered the domain name. Can this problem be solved during installation or do I need to modify a file i.e., host.conf or resolv.conf? Was I correct to use the same IP for host and primary server on the same machine?
Question by:certek
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
  • 3
  • 2
  • 2

Expert Comment

ID: 1585930
Sounds you have it set up right. Try adding an entry in resolv.conf as follows and see if it works.

nameserver    (your server ip address)

You can also do this with the /etc/hosts file, for example, localhost nat
yyy.yyy.yyy.yyy macclient

where macclient is the name of you mac machine and yyy.yyy.yyy.yyy is the mac's ip address. is the ip of the server

If this works, let me resubmit as an answer

Author Comment

ID: 1585931
after altering the resolv.conf to domain mydomain I tried to pull up the Apache welcome page using I was unsucessful. I than used the FQDN still no luck. The original resolv.conf file read search mydomain  for the first line and namerserver for the second line. I only changed the first line because the second line of the resolv.conf was correct. Do you have any other ideas ?

domain mydomain

Expert Comment

ID: 1585932
If there are only going to be few machines involved you should be able to put entries in /etc/hosts that map the names of the various machines. In the example I gave in the first post the hosts file should tell linux that nat, and the ip number for this machine all refer to the same computer, so all should work. If that's not it, there is probably something to add in your apache setup. You could try removing the nameserver line in resolv.conf and just using the hosts file. You could also run named on the linux machine, but this seems a bit involved for a 2 machine network.
Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.


Author Comment

ID: 1585933
Thanks alot for your help! I would like create a nameserver ;however I do not know enough about DNS - BIND. I believe I must config the named.boot file to create a namedserver. This also involves creating data files. I can live with entering the IP address until I become more knowledgeable.

Accepted Solution

ernaniaz earned 70 total points
ID: 1585934
You mac machine can't resolve names, you will really need to install a DNS on your redhat to cache hits from mac (which don't have direct access to inet, than, can't resolve names). You can download the last version of bind at: If you have problems to configure, goto Here you will find a pratically documentation to easy configure your bind. also contains the Bind Operations Guide. Remember: you don't need to fully configure your bind, just need to install it and put a cache configuration.

Here's a working (cache only) configuration example to you:

; Boot file for Caching Only Name Server
; type      domain                 source file or host
directory   /etc
cache       .                      root.cache
primary   named.local

@              IN   SOA (
                          1994072100             ; Serial
                          10800                  ; Refresh
                          1800                   ; Retry
                          3600000                ; Expire
                          259200 )               ; Minimum
               IN   NS       ; pedantic
1              IN   PTR   localhost.

; Put here your cache servers
                   604800   IN   NS   NS.INTERNIC.NET.
NS.INTERNIC.NET.    604800   IN   A
                   604800   IN   NS   NS.ISC.ORG.
NS.ISC.ORG.         604800   IN   A


Expert Comment

ID: 1585935
Sorry, but I've checked the text before posting this and have an error: Put a "." at start of lines that begin with "604800 IN NS" in the file /etc/named.cache.

Author Comment

ID: 1585936
Thanks ! I beginning to get the concept of DNS.

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

615 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