Sponsored Content
Full Discussion: How to set dns in rhel4
Operating Systems Linux Red Hat How to set dns in rhel4 Post 302365010 by pludi on Sunday 25th of October 2009 08:22:48 AM
Old 10-25-2009
The 'search' directive of resolv.conf doesn't specify which servers to search, but what domains to search through. Example: if you specify two search domains
Code:
search bar.com
search foo.bar.com

and do a lookup for the name 'baz', the resolver will look for
  • baz.
  • baz.bar.com.
  • baz.foo.bar.com.

Name servers, where the resolver should query about them, are specified by the 'nameserver' directive, eg
Code:
nameserver 192.168.0.2
nameserver 192.168.0.3

will query 192.168.0.2 first, and, if that's not reachable, 192.168.0.3.

For your server to be able to act as a name server, you'll have to install and configure the appropriate service. One of the most used is BIND, which should be available in the RHEL repositories.

Ref: resolv.conf(5), Wikipedia on BIND, ISC BIND
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

DNS set-up

Were able to set-up and configure Web,File and DHCP Services except for the DNS set-up. Isn't it that to set up dns, we have to use BIND? In Web Services, we were able to view the default page using the servers IP address, our client wants to view it using or typing the address for example... (2 Replies)
Discussion started by: carljo
2 Replies

2. IP Networking

How can I set DNS for my website

I have developed a website using LAMP. Right now we are accessing the website using ip address(in intranet) ie http://10.192.192.162/IntraWeb/index.php I would like to access the web using name instead of ip address. ie http://www.projects.org/IntraWeb/index.php How can I set DNS for... (1 Reply)
Discussion started by: sip
1 Replies

3. Linux

DNS unable to set up!!

Hi Experts, I am a newbie like in Linux world, practising Fedora Linux on VMWare but DNS is never set up: Below are my conf files: 1. named.conf options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk... (4 Replies)
Discussion started by: vikasdh
4 Replies

4. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

5. Red Hat

Update for RHEL4

Hi Everybody, I have some RHEL4 and RHEL5 machines, whenever i check for new updates on RHEL4 with up2date, it shows me the update which is for RHEL5 machine and not for RHEL4 machine.On the other RHEL4 machine it shows the correct update (which is for RHEL4) So i am not able to update it. Can... (2 Replies)
Discussion started by: laxmikant
2 Replies

6. Programming

How to set DNS lookup type for getaddrinfo()?

Hi there, I'm trying to do an MX type lookup using getaddrinfo(), but I can't work out how to change the lookup type to MX from the standard A - can anybody tell me how to do this? Thanks very much John G (3 Replies)
Discussion started by: JohnGraham
3 Replies

7. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

8. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

9. Red Hat

Issue in DNS set up

:wall:I am a beginer in Linux admin. I have build new DNS setting in my system. Please find the below procedure what I followed to build DNS. but at last when I fired nslookup command, its getting error. I am using RHEL5 OS. Please help me to resolve this below issue.. Advance thanks for... (1 Reply)
Discussion started by: pradipta_pks
1 Replies

10. UNIX for Advanced & Expert Users

Set up and configure DNS in virtualbox

hi to everyone. our instructor gave us a cd containing rhel6. where on 3rd week now and he is assgning us to configure a dns. Im using rhel 6.3(anaconda). i install bind. and says:nothing to do. when i follow step by step configuration in some website i encounter problems like i have no file... (1 Reply)
Discussion started by: rpmacaspac
1 Replies
GETZONE(1)							      getzone								GETZONE(1)

NAME
getzone - get dns zone from server DESCRIPTION
getzone transfers a user-specified dns zone from a zone server and displays it in csv1 format on the standard output. This program is here for compatibility with older setups that use getzone to get zone files; newer setups may wish to consider using the fetchzone tool to obtain csv2-compatible zone files. USAGE
getzone zone_name zone_server_IP [query_class] OPTIONS
zone_name Name of the dns zone to be transferred. zone_server_IP IP address of dns server query_class Optional argument which can change the query class from 1 (the default) to 255. This may be needed for some versions of Bind. EXAMPLES
To obtain the zone example.com from the server 192.168.9.8: getzone example.com 192.168.9.8 To obtain the zone example.org from the server 10.9.8.78 using a query class of 255: getzone example.com 10.9.8.78 255 SEE ALSO
The man pages maradns(8) and csv1(5) http://www.maradns.org LEGAL DISCLAIMER
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHOR
MaraDNS is written by Sam Trenholme. Jaakko Niemi used 5 minutes to put this manpage together. Sam has subsequently made revisions to this manpage. October 2001 getzone GETZONE(1)
All times are GMT -4. The time now is 09:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy