Solved

cannot resolve repository through bind.

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 81
installing docker on ubuntu 6 29
Basic EC2 wildfly server connectivity from browser 4 25
E-mail delayed during DNS server reboot 8 38
Resolve DNS query failed errors for Exchange
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

773 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