LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2010, 09:33 AM   #1
jjena
LQ Newbie
 
Registered: Jan 2010
Posts: 10
Blog Entries: 1

Rep: Reputation: 0
Name Resolving


Hi,

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.

Regards,
Jyotirmay
 
Old 01-05-2010, 09:52 AM   #2
thePiet
LQ Newbie
 
Registered: Dec 2009
Posts: 25

Rep: Reputation: 15
I'm using DNSMasq for that kind of stuff, check out http://www.thekelleys.org.uk/dnsmasq/doc.html if this application suits your needs.
 
Old 01-06-2010, 09:20 AM   #3
jjena
LQ Newbie
 
Registered: Jan 2010
Posts: 10
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Name resolving

Hi,
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- http://10.16.2.3/webmail/src/login.php

---------------->

What I want that they can open by simply typing- mail.sarda.co.in



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

Regards,
Jyotirmay
 
Old 01-07-2010, 03:39 AM   #4
thePiet
LQ Newbie
 
Registered: Dec 2009
Posts: 25

Rep: Reputation: 15
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:

foobar 10.0.0.1
bazfoo 10.0.0.2
thishostdoesnotexist 10.0.0.3

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.
#no-hosts
# or if you want it to read another file, as well as /etc/hosts, use
# this.
#addn-hosts=/etc/banner_add_hosts
 
1 members found this post helpful.
Old 01-07-2010, 07:47 AM   #5
jjena
LQ Newbie
 
Registered: Jan 2010
Posts: 10
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Hi,
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.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
72.9.243.250 joomla.com joomla
192.9.100.18 manager



Suppose that my mail server address is - http://170.16.2.3/webmail/

and I want to give the name mail.someone.co.in.

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

Regards,
Jyotirmay
 
Old 01-08-2010, 03:46 AM   #6
thePiet
LQ Newbie
 
Registered: Dec 2009
Posts: 25

Rep: Reputation: 15
Well, simply append

170.16.2.3 mail.someone.co.in

To /etc/hosts and restart DNSmasq.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
domain not resolving, please help pinoyskull Linux - General 2 08-16-2007 11:40 AM
server not resolving mahmoud Linux - Newbie 3 04-26-2006 02:36 AM
Resolving a hostname from it's ip? Infernal211283 Linux - Networking 3 01-09-2006 06:09 AM
Resolving IP addresses? easwaran Linux - Networking 3 10-07-2004 08:55 PM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 05:54 AM


All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration