I needed to free the port 80 for Nginx, so I tried to change the Apache default port to 85
It was quite weird as I found several places where the settings had to be changed.
After many difficulties, I end up with smooth Apache and Bind9 operation, but the virtual host I set is not reachable.
Querying from another server, I get:
ks312228:~# nslookup b2mml-services.com
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Server: 213.186.33.99
Address: 213.186.33.99#53
** server can’t find b2mml-services.com: SERVFAIL
ks312228:~# ping b2mml-services.com
ping: unknown host b2mml-services.com
ks312228:~# dig ks311625.kimsufi.com b2mml-services.com
; <<>> DiG 9.6-ESV-R4 <<>> ks311625.kimsufi.com b2mml-services.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38444
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;ks311625.kimsufi.com. IN A
;; ANSWER SECTION:
ks311625.kimsufi.com. 916 IN A 188.165.208.179
;; AUTHORITY SECTION:
kimsufi.com. 53273 IN NS dns.ovh.net.
kimsufi.com. 53273 IN NS ns.ovh.net.
;; ADDITIONAL SECTION:
ns.ovh.net. 41312 IN A 213.251.128.136
dns.ovh.net. 41312 IN A 213.186.33.102
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun 8 23:44:47 2011
;; MSG SIZE rcvd: 128
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 50417
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;b2mml-services.com. IN A
;; Query time: 9 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun 8 23:44:47 2011
;; MSG SIZE rcvd: 36
Querying from the server itself
root@ks311625:/var/log# nslookup b2mml-services.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: b2mml-services.com
Address: 188.165.208.179
root@ks311625:/var/log# named-checkconf -z
zone b2mml-services.com/IN: loaded serial 2011060804
zone localhost/IN: loaded serial 2
zone 127.in-addr.arpa/IN: loaded serial 1
zone 0.in-addr.arpa/IN: loaded serial 1
zone 255.in-addr.arpa/IN: loaded serial 1
root@ks311625:/var/log# netstat -lnp | grep :85
tcp 0 0 0.0.0.0:85 0.0.0.0:* LISTEN 15742/apache2
root@ks311625:/var/log# netstat -lnp | grep :80
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 4362/java
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4108/nginx
tcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN 4075/freeswitch
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 4408/java
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 4362/java
tcp6 0 0 127.0.0.1:8079 :::* LISTEN 4230/java
Any idea?
Thanks for help