• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Red Hat Named

I am new to DNS and Red Hat. My first problem is every time I restart named i get the following message:

Couldn't find server 'localhost': Name or service not known.

What can i do to stop this. (I told you dont know anything about DNS!)

and my second problem is:

I have a linux box with server named linuxserver. I can access this over the network using http://linuxserver
I want to be able to bind the same IP to http://something.linuxserver, is this possible with networking?

Cheers
0
etix6x2000
Asked:
etix6x2000
1 Solution
 
MrAhmadCommented:
as a root type :

echo "127.0.0.1       localhost.localdomain   localhost" > /etc/hosts
0
 
Kent OlsenData Warehouse Architect / DBACommented:

Better yet, ADD the item that MrAhmad quoted to your /etc/hosts file.  His solution will overwrite any existing entries.

0
 
Cygnus78Commented:
echo "127.0.0.1       localhost.localdomain   localhost" >> /etc/hosts

Will append to /etc/hosts
0
Industry Leaders: 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!

 
etix6x2000Author Commented:
Thanks thats my first problem sorted. ANy ideas on the second????
0
 
Kent OlsenData Warehouse Architect / DBACommented:

Within your BIND setup files you can create as many names an aliases as you see fit.  For a "first stab" at the problem just go ahead and define an entry for "something.linuxserver" that (except for the name) looks just like the entry for "linuxserver".  Once you've gotten this resolved I would change the configuration files to include the reverse lookup and make proper use of the ALIAS directive.

You might also add the "something.linuxserver" name to the /etc/hosts file.

Kdo
0
 
etix6x2000Author Commented:
Con you be a little more in depth.
Thanks
0
 
CleanupPingCommented:
etix6x2000:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
paullamhkgCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Be PAQ'd/Points No Refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Paul
EE Cleanup Volunteer
0
 
YensidModCommented:
PAQed per request/recommendation - No Refund

YensidMod
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now