Wednesday, December 11, 2013

Bind Error - error (broken trust chain) resolving... - CentOS 6.5 - SOLVED!

After installing packages "bind" and "bind-utils", I started an initial configuration. Afterwards, I ran the following command, which failed:
$ dig google.com

# tail -f /var/log/messages
error (broken trust chain) resolving...

The aforementioned message stood out from all the others.

A well-placed Google search suggested I try the following commands. I did not have ntp installed, so:
# yum -y install ntp
# ntpdate pool.ntp.org
# hwclock --systohc
# rm /var/named/dynamic/managed-keys.bind*
# service named restart

Verification:
Afterwards, "dig google.com" worked:
# dig google.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29176
;; flags: qr rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             100     IN      A       74.125.228.70
google.com.             100     IN      A       74.125.228.71
google.com.             100     IN      A       74.125.228.72
google.com.             100     IN      A       74.125.228.73
google.com.             100     IN      A       74.125.228.78
google.com.             100     IN      A       74.125.228.64
google.com.             100     IN      A       74.125.228.65
google.com.             100     IN      A       74.125.228.66
google.com.             100     IN      A       74.125.228.67
google.com.             100     IN      A       74.125.228.68
google.com.             100     IN      A       74.125.228.69

;; Query time: 18 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Dec 11 23:08:16 2013
;; MSG SIZE  rcvd: 204

Courtesy of:

No comments:

Post a Comment