PDA

View Full Version : Hostname Issues


phenner
6th February 2009, 16:39
Hi,

I am running and Ubuntu 8.10 server with Apache2 and ISPConfig 2.
I have many sites hosted on my server, which all work fine apart from one.

www.phennerweb.co.uk - doesn't work
phennerweb.co.uk - works

I have the default hostname set as www, and then a co-domain set up with no hostname.

Any ideas?

Thanks,

Rich

till
6th February 2009, 17:14
Please make sure that you have a dns a-record for www.phennerweb.co.uk pointing to the IP address that you selected for the website.

phenner
6th February 2009, 17:19
Where may I create said DNS-A record?

Thanks,

Rich

falko
7th February 2009, 16:59
The records for phennerweb.co.uk and www.phennerweb.co.uk are pointing to different IPs:

server1:~# dig www.phennerweb.co.uk

; <<>> DiG 9.3.4-P1.1 <<>> www.phennerweb.co.uk
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7632
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.phennerweb.co.uk. IN A

;; ANSWER SECTION:
www.phennerweb.co.uk. 0 IN A 206.222.226.17

;; Query time: 175 msec
;; SERVER: 213.191.92.84#53(213.191.92.84)
;; WHEN: Sat Feb 7 15:57:39 2009
;; MSG SIZE rcvd: 54

server1:~# dig phennerweb.co.uk

; <<>> DiG 9.3.4-P1.1 <<>> phennerweb.co.uk
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55598
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;phennerweb.co.uk. IN A

;; ANSWER SECTION:
phennerweb.co.uk. 120 IN A 90.208.209.248

;; Query time: 143 msec
;; SERVER: 213.191.92.84#53(213.191.92.84)
;; WHEN: Sat Feb 7 15:57:46 2009
;; MSG SIZE rcvd: 50

server1:~#

You must modify the A record on these nameservers:

server1:~# dig ns phennerweb.co.uk

; <<>> DiG 9.3.4-P1.1 <<>> ns phennerweb.co.uk
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49407
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 4

;; QUESTION SECTION:
;phennerweb.co.uk. IN NS

;; ANSWER SECTION:
phennerweb.co.uk. 120 IN NS ns3.dnsexit.com.
phennerweb.co.uk. 120 IN NS ns4.dnsexit.com.
phennerweb.co.uk. 120 IN NS ns1.dnsexit.com.
phennerweb.co.uk. 120 IN NS ns2.dnsexit.com.

;; ADDITIONAL SECTION:
ns4.dnsexit.com. 168497 IN A 67.214.161.154
ns1.dnsexit.com. 13003 IN A 69.57.160.118
ns2.dnsexit.com. 168163 IN A 64.182.102.188
ns3.dnsexit.com. 5670 IN A 67.214.175.73

;; Query time: 110 msec
;; SERVER: 213.191.92.84#53(213.191.92.84)
;; WHEN: Sat Feb 7 15:58:48 2009
;; MSG SIZE rcvd: 181

server1:~#These are probably the nameservers of your registrar, so you should have a web interface where you can do that.

phenner
7th February 2009, 17:31
Ok, so I sort of understand this now. What do I need to change the A-record to?

It is currently phennerweb.co.uk --> 90.208.209.248 with a TTL of 120.

Thanks,

Rich

till
8th February 2009, 12:20
What do I need to change the A-record to?

To the IP address of the domain phennerweb.co.uk, thats the one that you selected for the website.

phenner
8th February 2009, 14:41
Great! Thanks for your help guys :D

All works fine now.

Rich