Solved

cannot resolve repository through bind.

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 46
shell script or linux command to upload a directory to artifactory? 2 87
Determine Who is Runnig my Bash Shell Script 4 65
AD LDAP LDS 3 48
If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
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 …
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

867 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

16 Experts available now in Live!

Get 1:1 Help Now