Solved

cannot resolve repository through bind.

Posted on 2014-09-29
4
189 Views
Last Modified: 2014-10-06
Greetings.
I have two servers: cphq(192.168.1.15) and hdfs1(192.168.1.25)
my cphq server has named(bind)
I'm trying to install ambari-client.

My problem is that I am receiving this error:  Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

I have tried yum clean all, and other commands with no avail.
I am reasonably convinced it's my bind settings on cphq.
here they are:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
//	listen-on port 53 { 127.0.0.1; };
//	listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
	allow-query     { any; };
        allow-transfer  { localhost; 192.168.1.15; };
	recursion yes;

	dnssec-enable yes;
	dnssec-validation yes;
	dnssec-lookaside auto;

	/* Path to ISC DLV key */
	bindkeys-file "/etc/named.iscdlv.key";

	managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

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

zone "cutlerplace.net" IN {
     type master;
     file "cutlerplace.net.zone";
     allow-update { none; };
};

zone "google.com" {
type forward;
forwarders { 8.8.8.8 ; 8.8.4.4 ; };
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

Open in new window


As you can see I even added a forward to google in attempt to run dns for it, but still nogo.  same error.
Any ideas?
thanks
0
Comment
Question by:Evan Cutler
  • 2
  • 2
4 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40352475
forwarders/forward-only should go in main options section to gain anything.
0
 
LVL 9

Author Comment

by:Evan Cutler
ID: 40352486
so how should it read?
forwarders { 8.8.8.8 ; 8.8.4.4 ; };
and that's in in the options section?
Thanks.
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 40352675
forward only;
forwarders {ip_your_provider_gave; other_ip;};
0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 40364108
Sorry it took me so long getting back.
This worked for me.
Thank you very much.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question