Configure DNS in rhel6.3

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Configure DNS in rhel6.3
# 1  
Old 07-27-2013
Configure DNS in rhel6.3

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
cant configure dns in virtual box. im using rhel6.3. i have a cd containing rhel which the professor provided us. ive had installed bind using command: yum install bind. and says :nothing to do.pls help me step by step in configuring a dns and a solution to this problem.


2. Relevant commands, code, scripts, algorithms:
im following these steps (this is in virtual box) i have save every edit i had made:
Code:
#yum install bind
#ifconfig

eth0 
inet addr: 10.0.2.15

#vi /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0
NM_CONTROLLED=no
ONBOOT=yes
IPADDR=10.0.2.15
BOOTPROTO=none
NETMASK=255.255.255.0
DNS=10.90.12.1
TYPE=Ethernet
IPV6INIT=no
USERCTL=no

#vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=station.example.com

# vim /etc/hosts
0.20.2.15      station.example.com     station

#vim /etc/resolv.conf
search station.example.com
nameserver 10.0.2.15

#hostname station.example.com

#cp /etc/named.conf  /var/named/chroot/etc/named.conf
cp: cannot create regular file `/var/named/chroot/etc/named.conf`: No such file or directory

#vi /etc/named.conf
//no content

#rpm -qa | grep bind
ypbind-1.20.4-29.el6.x86_64
samba-winbind-clients-3.5.10-125.el6.x86_64
bind-utils-9.8.2-0.10.rc1.el6.x86_64
PackageKit-device-rebind-0.5.8-20.el6.x86_64
rpcbind-0.2.0-9.el6.x86.64
bind-libs-9.8.2-0.10.rc1.el6.x86_64

//i stop there



3. The attempts at a solution (include all code and scripts):
I copy content of named.conf @ site
so the content of my /etc/named.conf file is


Code:
// Red Hat BIND Configuration Tool
 // Default initial "Caching Only" name server configuration
 acl "example" { 16.10.1.0/16; };
 options {
 listen-on port 53 { 16.10.1.21; };
 directory "/var/named";
 dump-file "/var/named/data/cache_dump.db";
 statistics-file "/var/named/data/named_stats.txt";
 allow-recursion { example; };
 allow-transfer { none; };
 allow-query { any; };
 notify no;
 transfer-format many-answers;
 interface-interval 0;
 max-transfer-time-in 60;
 version "Not Available";
 /*
 * If there is a firewall between you and nameservers you want
 * to talk to, you might need to uncomment the query-source
 * directive below.  Previous versions of BIND always asked
 * questions using port 53, but BIND 8.1 uses an unprivileged
 * port by default.
 */
 // query-source address * port 53;
 dnssec-enable yes;
 dnssec-validation yes;
 dnssec-lookaside . trust-anchor dlv.isc.org.;
 };
 // a caching only nameserver config
 controls {
 inet 127.0.0.1 allow { localhost; } keys { rndckey; rndc-key; };
 };
 server 16.10.1.21 {
 keys { rndckey; };
 };
 zone "." IN {
 type hint;
 file "named.root";
 };
 // Now register your domain name and database/zone file
 // record better before the line "include /etc/rndc.key"
 // You can include separate zone entry
 // file with "include /etc/myinternalzonefile.zones" within this named.conf file.
 //Name Zone Registration
 zone "example.com" IN {
 type master;
 file "example.for";
 allow-transfer { none; };
 };
 // Reverse Zone Rsegistration
zone "1.10.16.in-addr.arpa" IN {
 type master;
 file "example.rev";
 allow-transfer { none; };
 };
//include the rndc key like below (copy-past from rndc.key created earlier)
 key rndckey {
 algorithm hmac-md5;
 secret "Hi1V+y3WixmfEfGqrebKRA==";
 };
 key rndc-key {
 algorithm hmac-md5;
 secret "AoXEyjm6UUKu4cKqFoFMRg==";
 };
 trusted-keys {
 dlv.isc.org. 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URkY62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboMQKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VStTDN0YUuWrBNh";
 };



4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
ASIA PACIFIC COLLEGE, MANILA, PHILIPPINES, Instuctor Jayvee,IT. (i dont know the course number)

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).

---------- Post updated at 09:17 PM ---------- Previous update was at 09:10 PM ----------

assignment is to create a working dns server. Im at home right now. And when back at class I should have to configure it manually in a real rhel os

Last edited by Scott; 07-27-2013 at 10:12 AM.. Reason: Code tags
# 2  
Old 07-27-2013
You have bind-utils and bind-libs packages installed but as far as I can see you have not got the bind package installed. You need to install this package before anything is going to work for you.
# 3  
Old 07-28-2013
It seems you want bind-chroot (of which bind is a dependency)

Code:
yum install bind-chroot

will give you both packages.

Could you please edit your post to re-copy your named.conf, using code tags... all the formatting is lost now, and it's hard to read.

You should fully qualify the paths to your zone files.

Code:
[root@ns1 etc]# nslookup imac
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   imac.scottn.int
Address: 10.16.134.200

[root@ns1 etc]# grep -A2 scottn.int named.conf
zone "scottn.int" {
        type master;
        file "/var/named/scottn.int.hosts";
        notify yes;
        };

[root@ns1 etc]# vi named.conf
...

[root@ns1 etc]# grep -A2 scottn.int named.conf
zone "scottn.int" {
        type master;
        file "scottn.int.hosts";
        notify yes;
        };

[root@ns1 etc]# service named restart
Stopping named:                                            [  OK  ]
Starting named:
Error in named configuration:
zone scottn.int/IN: loading from master file scottn.int.hosts failed: file not found
zone scottn.int/IN: not loaded due to errors.
_default/scottn.int/IN: file not found
                                                           [FAILED]

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Unable to configure Photon3G in RHEL6.5

Hi All, Has Any body configured Photon3G ( ZTE MF190 ) on RHEL6.5. Any Device as below .. Bus 001 Device 033: ID 19d2:1254 ZTE WCDMA Technologies MSM Kernel -- 2.6.32-431.30.1.el6.x86_64 Usb modeswitch Version .. usb_modeswitch-data-20120815-2.el6.noarch... (0 Replies)
Discussion started by: linux.amrit
0 Replies

2. IP Networking

How to configure RHEL6 to support Aleton 4408 in DSR mode?

Dears How to configure RHEL6 to support Aleton 4408 in DSR(Direct Server Return) mode We have config Aleton 4408 + Windows 2008R2 then Windows set loopback interface with VIP. the exec the following command in CMD netsh interface ipv4 set interface "net" weakhostreceive=enabled netsh... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

3. Red Hat

Chroot DNS RHEL6

Hi, Just installed BIND on rhel6 as a primary new DNS server and all went well, digging and resolving as it should. However, all zone files are listed in the /var/named dir as well as the /var/named/chroot/var/named. Although no dynamic links are shown, they are. This doesn't seem secure to me,... (2 Replies)
Discussion started by: Duffs22
2 Replies

4. 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

5. Red Hat

How to configure DNS configuration for RHEL 5?

I wanted to know how to configure DNS configuration for RHEL 5. I hope, my query is clear of how to setup DNS for RHEL 5. Please revert with the reply to my query Regards (6 Replies)
Discussion started by: RHCE
6 Replies

6. Red Hat

configure dns in centos

Hi, how do I set the DNS in centos. I don't mean of creating DNS server, but setting what should be the DNS server of centos. I mean to what server he should go in order to translate url into ip (6 Replies)
Discussion started by: programAngel
6 Replies

7. IP Networking

Configure DNS

I am running Solaris 2.6 Server on a Sparc 10 and I was wondering how I can manually specify a DNS server to resolve hostnames. Any help will be greatly appreciated. And also I have created a file in the /etc dir named defaultrouter and added th IP address of my router, but when I ping another... (15 Replies)
Discussion started by: jskillet
15 Replies

8. Solaris

configure DNS server on solaris

Hello evrybody I need to know how i can implement and configure DNS server in solaris9 and i need to understand which files i modified it to do that Thanks all (8 Replies)
Discussion started by: asafwat
8 Replies

9. UNIX for Advanced & Expert Users

How to configure DNS

My OS is sun solaris7,(sun sparc),i want connect inernet and my computer in my company intranet.After i configure proxy server,i still can't conncet internet.I guess whether the DNS is configured correctly. who can help me???Thank you very much!!! (6 Replies)
Discussion started by: q30
6 Replies

10. IP Networking

trying to configure DNS address in Solaris

hi to all. I'm trying to use the sendmail command to generate some reports and I cant use it. The mails i try to send simply won't go out, instead I receive a response from the system sayng that the host is unknown. I think the problem is in the DNS configuration (or the IMAP/SMTP servers). ... (3 Replies)
Discussion started by: ldrojasm
3 Replies
Login or Register to Ask a Question