LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-22-2006, 09:31 PM   #1
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 102

Rep: Reputation: 15
dns configuration


Can anyone who can tell me how to configure DNS in RH

thanks!
 
Old 02-22-2006, 10:07 PM   #2
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
edit your /etc/resolv.conf file.
Add
nameserver ip.address.for.dns

If you are trying to setup bind/named? let me know.
 
Old 02-22-2006, 11:39 PM   #3
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 102

Original Poster
Rep: Reputation: 15
i'm trying to setup named
 
Old 02-23-2006, 08:46 AM   #4
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
Well, depending on your version of named, you are going to need to setup a domain, create yourself as the SOA of that domain, and edit your named.conf in order to tell the named daemon where your zone file is.

so, you edit /etc/named.conf, then probably a file in /var/named , and call it anything you want, like domainname.com or db.domainname . In that file in /var/named, (called a zone file) you will put in the information pertaining to your domain.

Here is an example /etc/named.conf file:

Code:
options {
        directory "/var/named" ;
        listen-on { localhost; x.x.x.x; }; #put your ip here that you will have named listening on
        query-source address * port 53;
        allow-query { localhost; x.x.x.x; } ; # who do you want to query this server? 0.0.0.0/0 will allow anyone
        allow-recursion { localhost; x.x.x.x; } ;
        allow-transfer { localhost; } ; # if you want to do the equivalent to an ftp of your zone files to a second dns server
        notify no;
        };

        zone "." in {
        type hint;
        file "named.ca";
        };

        zone "x.x.x.in-addr.arpa" { #first three octets of your ip for reverse dns, etc (so if your ip is 2.3.4.5, you will make this 4.3.2.in-addr.arpa
                type master;
                file "4.3.3.in-addr.arpa"; # the file name
                allow-query { any ; } ;
        };

        zone "yourdomain.com" {
                type master;
                file "yourdomain.com";
                allow-query { any ; } ;
        };

Although I think generators are like cheating, you can see how the zone file works by going here:

http://pgl.yoyo.org/adservers/bind-z...le-creator.php

Last edited by sipsipi; 02-23-2006 at 08:52 AM.
 
Old 02-23-2006, 06:57 PM   #5
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 102

Original Poster
Rep: Reputation: 15
i still having a problem with the internet sharing i don't know what configuration will i do,by the way in our office our internet is not static we have a dynamic IP add. In windows "local area connection 1" is assigned automatic while "local area connection 2" i assigned it manually as 192.168.0.1, and my internet sharing is ok with win xp. how will i do this in linux centosS
 
Old 02-24-2006, 07:31 AM   #6
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
Ok, now, I am confused. Can you restate your question #5? This is a Windows question?
 
Old 02-26-2006, 05:50 PM   #7
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 102

Original Poster
Rep: Reputation: 15
no, i only mentioned how to configure in windows, i am asking how to do it in linux

thanks!
 
  


Reply



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
Dns Configuration reply2vinay Linux - Hardware 1 08-28-2005 06:23 AM
DNS configuration namdn Linux - Security 1 07-20-2004 09:02 PM
DNS Configuration anibiswas Libranet 3 03-15-2004 08:56 PM
DNS configuration? existo Slackware 1 01-30-2004 12:43 PM
DNS Configuration jojogeorge Linux - Software 3 09-23-2003 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:22 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
Open Source Consulting | Domain Registration