LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   website not opening (https://www.linuxquestions.org/questions/linux-newbie-8/website-not-opening-908733/)

SarahGurung 10-18-2011 04:33 AM

website not opening
 
when we ping a website which we have been hosting it gives the loopback address and the website isnt opening..it seems something is wrong with our dns server..

what could be the possible problem and what should we do now?

cheesus 10-18-2011 04:55 AM

Or maybe you are not even asking DNS because the name is in /etc/hosts ?
Anyway, post some more info. do a traceroute, show config files, show ifconfig, etc etc.

nkd 10-18-2011 05:06 AM

Quote:

when we ping a website which we have been hosting it gives the loopback address
It is not clear from the above statement, if you are pinging from a host or the server itself. The loopback address suggest you are possibly pinging from the web server itself. it would be easier to have some details as :-

Quote:

output of ifconfig -a
output of ping <ip address of webserver>
output of ping < ca name of webserver Eg :- www.gmail.com>
output of ping <ip address of dns server>
output of nslookup <yourWebSiteName>
output of route -n
output of /etc/hosts
cheers
nishith

SarahGurung 10-18-2011 05:47 AM

well we host a website called www.kuenselonline.com ,now we are able to ping the website but we are not able to open it....so what could be the possible reason for that?

cheesus 10-18-2011 06:12 AM

Did you read the previous posts ?
Why do you not provide the requested information ?

bathory 10-18-2011 06:21 AM

Quote:

Originally Posted by SarahGurung (Post 4501313)
well we host a website called www.kuenselonline.com ,now we are able to ping the website but we are not able to open it....so what could be the possible reason for that?

Quote:

; <<>> DiG 9.8.0-P4 <<>> www.kuenselonline.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27192
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;www.kuenselonline.com. IN A

;; ANSWER SECTION:
www.kuenselonline.com. 13001 IN CNAME kuenselonline.com.
kuenselonline.com. 13001 IN A 127.0.0.1

;; AUTHORITY SECTION:
kuenselonline.com. 85051 IN NS ns1.webexa.com.
kuenselonline.com. 85051 IN NS ns2.webexa.com.

;; ADDITIONAL SECTION:
ns1.webexa.com. 14261 IN A 76.73.43.2
Your website resolves to the localhost IP. You need to ask the person responsible for the dns (ns1.webexa.com ns2.webexa.com) to do the necessary changes

SarahGurung 10-18-2011 06:28 AM

thanks bathory...

well can u or anyone tell me how can i make the changes required?

bathory 10-18-2011 06:40 AM

Are you the person responsible for these 2 nameservers that are authoritative for the domain kuenselonline.com? If you're, you should know how to add/change an A record.
Anyway you should give more details about the named.conf and the zone file for kuenselonline.com..
If you're not in charge for the dns stuff, you have to contact the guys at webexa.com that are responsible for the ns1 and ns2 nameservers and tell them what you want

deep27ak 10-18-2011 06:45 AM

In the forward zone file make an entry for name server

Code:

        IN NS  ns1.kuenselonline.com.
www      IN A    your IP


change the resolv.conf

Code:

#vi /etc/resolv.conf
search kuenselonline.com
your ip nameserver

In hosts file
Quote:

#vi /etc/hosts
your ip kuenselonline.com

SarahGurung 10-18-2011 06:45 AM

well nkd,the output are as follows:
1)ifconfig -a:
eth0 Link encap:Ethernet HWaddr 00:1E:0B:DD:20:58
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:169 Memory:fdef0000-fdf00000

eth1 Link encap:Ethernet HWaddr 00:1E:0B:DD:20:59
inet addr:118.103.137.1 Bcast:118.103.137.63 Mask:255.255.255.192
inet6 addr: fe80::21e:bff:fedd:2059/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1317762 errors:0 dropped:0 overruns:0 frame:0
TX packets:1458837 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114310572 (109.0 MiB) TX bytes:137074979 (130.7 MiB)
Interrupt:193 Memory:fded0000-fdee0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:618949 errors:0 dropped:0 overruns:0 frame:0
TX packets:618949 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:70511851 (67.2 MiB) TX bytes:70511851 (67.2 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

2)ping(ip of webserver):
PING 118.103.136.66 (118.103.136.66) 56(84) bytes of data.
64 bytes from 118.103.136.66: icmp_seq=1 ttl=62 time=0.305 ms
64 bytes from 118.103.136.66: icmp_seq=2 ttl=62 time=0.276 ms
64 bytes from 118.103.136.66: icmp_seq=3 ttl=62 time=0.289 ms
64 bytes from 118.103.136.66: icmp_seq=4 ttl=62 time=0.270 ms
64 bytes from 118.103.136.66: icmp_seq=5 ttl=62 time=0.282 ms
64 bytes from 118.103.136.66: icmp_seq=6 ttl=62 time=0.294 ms
64 bytes from 118.103.136.66: icmp_seq=7 ttl=62 time=0.276 ms

--- 118.103.136.66 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5999ms
rtt min/avg/max/mdev = 0.270/0.284/0.305/0.021 ms

3)ping(ca of webserver):
PING www.tashicell.com (118.103.136.66) 56(84) bytes of data.
64 bytes from www1.tashicell.com (118.103.136.66): icmp_seq=1 ttl=62 time=0.280 ms

4)nslookup of website:
[root@ns0] /home/alisha #
[root@ns0] /home/alisha #
[root@ns0] /home/alisha # nslookup www.kuenselonline.com
Server: 118.103.137.1
Address: 118.103.137.1#53

Non-authoritative answer:
www.kuenselonline.com canonical name = kuenselonline.com.
Name: kuenselonline.com
Address: 76.73.43.2

5) route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
118.103.137.0 0.0.0.0 255.255.255.192 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 118.103.137.62 0.0.0.0 UG 0 0 0 eth1

6)result of /etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
118.103.137.1 ns0.tashicell.com ns0


so these are the outputs that i am getting...so nowcan anyone help me out...the dns is reolving the website with the loopback adress instead of the ip of the website it seems..

deep27ak 10-18-2011 06:50 AM

You have not configured your DNS properly

This is the reason you are getting a proper reply when you use dig or nslookup

you will have to post your DNS configuration files
Code:

named.cf
named.rfc1912.zone
forward and reverse zone files
or any other file


SarahGurung 10-18-2011 06:59 AM

well we arent hosting the www.kuenselonline.com website , they are our leased line customers so they use our domain or the dns server for resolving...

so they are not in the forward and reverse zones configurations files..

deep27ak 10-18-2011 07:15 AM

Quote:

Originally Posted by SarahGurung (Post 4501395)
well we arent hosting the www.kuenselonline.com website , they are our leased line customers so they use our domain or the dns server for resolving...

so they are not in the forward and reverse zones configurations files..

make an entry in your hosts file

Code:

#vi /etc/hosts
your dns server    www.kuenselonline.com


and I am sure you are using same DNS server for name resolution in

Code:

#vi /etc/resolv.conf
search kuenselonline.com
your IP  nameserver
primary DNS  nameserver
secondary DNS  nameserver


SarahGurung 10-18-2011 10:13 PM

well i think my question isnt clear to you all...

my company's website is www.tashicell.com and we have ISP section in the company...now www.kuenselonline.com takes internet from us so their dns resolving is to be done my our dns server i suppose... and this is the website which isnt opening at all though we are able to ping it. and ya we don't host this website www.kuenselonline.com,they use our internet thats it..

and ya output of vi /etc/hosts is:
127.0.0.1 ns1.tashicell.com ns1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
118.103.137.105 erp0.tashicell.bt erp0
192.168.11.200 erp0.tashicell.bt erp0

so at first the loopback address is there,or is it that the website of tashicell should be there?

SarahGurung 10-18-2011 10:18 PM

deepak that was the output of secondary nameserver...primary one is different,as i posted yesterday..

and if we are using the same ip for name resolution then what should we do?


All times are GMT -5. The time now is 12:21 AM.