-   Linux - Newbie (
-   -   Name Resolving (

jjena 01-05-2010 08:33 AM

Name Resolving

I am new to Linux. I am using Redhat Enterpise 5 version. Now I want to configure DNS for only local (Intranet) name resolution. So that users can simply type the local website address and access the site.

Kindly tell me the step by step procedure to configure the same.


thePiet 01-05-2010 08:52 AM

I'm using DNSMasq for that kind of stuff, check out if this application suits your needs.

jjena 01-06-2010 08:20 AM

Name resolving
Thanks for advice ...
I have installed & follow the configuration instruction.

Now please tell me where can I add the local & ip address (such as local mail & portal). So that by using the address of DNSMASK PC as DNS the user can open the .

For Example:

Now they are opening the url by typing-


What I want that they can open by simply typing-

As I told you that I am very new to linux. So please help me in this.


thePiet 01-07-2010 02:39 AM

By default, DNSMasq reads /etc/hosts for local entries. DNSMasq allows you to manually enter hosts with their IP addresses in a file, e.g. /etc/hosts . This way you can add an entry like:


Etcetera. Plus, if you also run DHCP with DNSMasq and you set DNSMasq as DNS server on your clients, DNSMasq will respond to requests of local machine names. For example, if you have a box called "box1" and that box is getting it's IP from DNSMasq, other clients using your DNSMasq installation as DNS server can resolve box1.

In /etc/dnsmasq.conf:

# If you don't want dnsmasq to read /etc/hosts, uncomment the
# following line.
# or if you want it to read another file, as well as /etc/hosts, use
# this.

jjena 01-07-2010 06:47 AM

Again thanx a lot for your help. I am not using DHCP. I only wants to configure the host file for name resolving. My host file is looks like the bellow.
# Do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 joomla manager

Suppose that my mail server address is -

and I want to give the name

Now please gude me how can I add this to my Host file.


thePiet 01-08-2010 02:46 AM

Well, simply append

To /etc/hosts and restart DNSmasq.

All times are GMT -5. The time now is 02:50 PM.