LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2011, 05:33 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
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?
 
Old 10-18-2011, 05:55 AM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 184

Rep: Reputation: 25
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.
 
Old 10-18-2011, 06:06 AM   #3
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
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
 
Old 10-18-2011, 06:47 AM   #4
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-18-2011, 07:12 AM   #5
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 184

Rep: Reputation: 25
Did you read the previous posts ?
Why do you not provide the requested information ?
 
Old 10-18-2011, 07:21 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Originally Posted by SarahGurung View Post
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
 
Old 10-18-2011, 07:28 AM   #7
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
thanks bathory...

well can u or anyone tell me how can i make the changes required?
 
Old 10-18-2011, 07:40 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
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
 
Old 10-18-2011, 07:45 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
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

Last edited by deep27ak; 10-18-2011 at 07:46 AM.
 
Old 10-18-2011, 07:45 AM   #10
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well nkd,the output are as follows:
1)ifconfig -a:
eth0 Link encap:Ethernet HWaddr 00:1E:0BD: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:0BD: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..
 
Old 10-18-2011, 07:50 AM   #11
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
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
 
Old 10-18-2011, 07:59 AM   #12
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
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..
 
Old 10-18-2011, 08:15 AM   #13
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by SarahGurung View Post
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
 
Old 10-18-2011, 11:13 PM   #14
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-18-2011, 11:18 PM   #15
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Opening FTP service on public facing website for 3rd party maintenance access albertwt Linux - Security 6 11-04-2010 10:13 AM
youtube website not opening dragon88 Linux - Newbie 6 11-08-2008 12:36 AM
fast at downloading, slow at opening website sunnior Linux - Networking 3 09-28-2008 09:54 AM
Opening a website in text mode HadesThunder Linux - Newbie 5 03-26-2004 07:20 PM
Problems with Linux Browser opening Website dolphans1 Mandriva 8 10-28-2003 08:50 PM


All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration