Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 .
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.
#no-hosts
# or if you want it to read another file, as well as /etc/hosts, use
# this.
#addn-hosts=/etc/banner_add_hosts
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.