Author Topic: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]  (Read 1542 times)

Offline janasx1

  • Full Member
  • ***
  • Posts: 147
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS
« Reply #15 on: November 19, 2012, 09:55:21 PM »
ok. Thanks.
I will check the testing site in a day or two.
HP Pavilion notebook DV6400, AMD Turion TL-64, 2GB RAM, broadcom BCM4312, nvidia Geforce Go 6150

Offline janasx1

  • Full Member
  • ***
  • Posts: 147
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS
« Reply #16 on: November 24, 2012, 11:22:59 PM »
I tried the latest version from testing and still not able to bring named up.
Please let me know if you need any log messages.
Thanks
HP Pavilion notebook DV6400, AMD Turion TL-64, 2GB RAM, broadcom BCM4312, nvidia Geforce Go 6150

Offline n9bk

  • New Friend
  • *
  • Posts: 6
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS
« Reply #17 on: November 25, 2012, 10:53:35 AM »
I got the latest bind package and it works. here's how to as ROOT!
Of course you need to have the broken package already installed so you can just replace the binary with the newly compiled one.

wget http://www.isc.org/software/bind/992/download/bind-992tar.gz
tar xzvf bind-9.9.2.tar.gz
cd bind-9.9.2/
./configure&&make
./install-sh bin/named/named /usr/sbin/named
/etc/init.d/named start
« Last Edit: November 25, 2012, 12:19:08 PM by n9bk »

Offline janasx1

  • Full Member
  • ***
  • Posts: 147
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS
« Reply #18 on: November 25, 2012, 11:20:32 AM »
Thanks n9bk.
I tried it and got the error in second line.
I fixed the url in the first line and below are the commands I executed.

wget http://ftp.isc.org/isc/bind9/9.9.2/bind-9.9.2.tar.gz
tar xzvf bind-9.9.2.tar.gz
cd bind-9.9.2/
./configure&&make
./install-sh bin/named/named /usr/sbin/named
/etc/init.d/named start


[root@SBK013638L1CMG bind-9.9.2]# /etc/init.d/named start
Starting named:                                                                                                             [  OK  ]


below are the dig command outputs to confirm the local dns server is working...


[root@SBK013638L1CMG bind-9.9.2]# dig @127.0.0.1 www.google.com

; <<>> DiG 9.9.2 <<>> @127.0.0.1 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32601
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 4, ADDITIONAL: 5

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         300     IN      A       173.194.73.105
www.google.com.         300     IN      A       173.194.73.103
www.google.com.         300     IN      A       173.194.73.99
www.google.com.         300     IN      A       173.194.73.106
www.google.com.         300     IN      A       173.194.73.104
www.google.com.         300     IN      A       173.194.73.147

;; AUTHORITY SECTION:
google.com.             172800  IN      NS      ns1.google.com.
google.com.             172800  IN      NS      ns2.google.com.
google.com.             172800  IN      NS      ns4.google.com.
google.com.             172800  IN      NS      ns3.google.com.

;; ADDITIONAL SECTION:
ns1.google.com.         172800  IN      A       216.239.32.10
ns2.google.com.         172800  IN      A       216.239.34.10
ns3.google.com.         172800  IN      A       216.239.36.10
ns4.google.com.         172800  IN      A       216.239.38.10

;; Query time: 285 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Nov 25 13:18:09 2012
;; MSG SIZE  rcvd: 275

[root@SBK013638L1CMG bind-9.9.2]# dig @127.0.0.1 www.google.com

; <<>> DiG 9.9.2 <<>> @127.0.0.1 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37050
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 4, ADDITIONAL: 5

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         299     IN      A       173.194.73.99
www.google.com.         299     IN      A       173.194.73.103
www.google.com.         299     IN      A       173.194.73.105
www.google.com.         299     IN      A       173.194.73.106
www.google.com.         299     IN      A       173.194.73.104
www.google.com.         299     IN      A       173.194.73.147

;; AUTHORITY SECTION:
google.com.             172799  IN      NS      ns4.google.com.
google.com.             172799  IN      NS      ns1.google.com.
google.com.             172799  IN      NS      ns2.google.com.
google.com.             172799  IN      NS      ns3.google.com.

;; ADDITIONAL SECTION:
ns1.google.com.         172799  IN      A       216.239.32.10
ns2.google.com.         172799  IN      A       216.239.34.10
ns3.google.com.         172799  IN      A       216.239.36.10
ns4.google.com.         172799  IN      A       216.239.38.10

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Nov 25 13:18:10 2012
;; MSG SIZE  rcvd: 275

[root@SBK013638L1CMG bind-9.9.2]#


Thanks a lot everyone.
HP Pavilion notebook DV6400, AMD Turion TL-64, 2GB RAM, broadcom BCM4312, nvidia Geforce Go 6150

Offline n9bk

  • New Friend
  • *
  • Posts: 6
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #19 on: November 25, 2012, 11:29:35 AM »
Sorry about the typeo.
It just goes to show all that no mater how careful you are, errors will always happen.
It's what keeps the Forums a going.

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #20 on: November 25, 2012, 11:34:00 AM »
This is great! When I build a new rpm, I use the spec file from the previous version. Since the source build works, there must be something in the spec that interferes. I'll look it over and submit a new build. Thanks for testing!

Galen

Offline n9bk

  • New Friend
  • *
  • Posts: 6
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #21 on: November 25, 2012, 12:30:46 PM »
if you look at the difference between the two files it will become obvious that the original one got truncated.
the good file:
ll /usr/sbin/named -h
-rwxr-xr-x 1 root root 6.8M Nov 25 12:35 /usr/sbin/named*

whereas  the bad rpm lists it as only 2.6 megabytes.


Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #22 on: November 26, 2012, 12:05:30 AM »
The number of changes from the simple install are immense. :-\ There is no way for me to track down, what each line does. I will build a simple rpm without all of the customizations and patches and see if any of the previous changes are even needed, because as it stands now, they don't work.

Galen

Offline janasx1

  • Full Member
  • ***
  • Posts: 147
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #23 on: November 28, 2012, 09:49:47 PM »
Sorry to open a solved thread.
I tried these commands in another laptop.
./configure&&make gave below error


checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/root/bind-9.9.2':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details


Here is the first error in the log file. Not sure if its relevant.

configure:5350: checking how to run the C preprocessor
configure:5381: gcc -E  conftest.c
configure:5381: $? = 0
configure:5395: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5395: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
HP Pavilion notebook DV6400, AMD Turion TL-64, 2GB RAM, broadcom BCM4312, nvidia Geforce Go 6150

Offline n9bk

  • New Friend
  • *
  • Posts: 6
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #24 on: November 30, 2012, 10:04:16 AM »
You need to install a 'C' compiler and associated tools.
I am running the Full Monty Desktop which comes with the Compiler and tools installed as default.

Offline janasx1

  • Full Member
  • ***
  • Posts: 147
Re: Bind package update to 9.9.1-0.0.P2.1pclos2012 broke DNS [SOLVED]
« Reply #25 on: November 30, 2012, 11:56:36 AM »
Thanks n9bk.

I had to install the package gcc-c++ to proceed further.

In my other laptop I didnt have this package installed. Not sure how it worked there.
HP Pavilion notebook DV6400, AMD Turion TL-64, 2GB RAM, broadcom BCM4312, nvidia Geforce Go 6150