Solved

cannot resolve repository through bind.

Posted on 2014-09-29
4
184 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 61

Expert Comment

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

Author Comment

by:Evan Cutler
Comment Utility
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 61

Accepted Solution

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

Author Closing Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now