DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 4th, 2003, 04:46 AM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 245 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 5 m 11 sec
Reputation Power: 5
configuration error DNS

I have Red Hat linux 9. I am running a APACHE wbserver on the same machine as I am running my DNS server. But when i try to connect to my website, i get a message like " can not connect to host". I can surf for all pages on the net except my own. And everybody else can connect to my website. I have a USrobotics router/firewall, but i don't think that the problem relates to it.
__________________

Reply With Quote
  #2  
Old November 4th, 2003, 08:23 AM
cconstantine cconstantine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 60 cconstantine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 27 sec
Reputation Power: 5
I'd start by making sure your Apache is listening where you think it is. 'netstat -na' would get you started... look for a port 80 listener on the IP wherey ou expect you web server. If no listerner, check apache config. If you have a listener, make sure a "dig www.whatever.com" from your command line returns the IP its listening on. If that's wrong, you have a DNS config error.

Reply With Quote
  #3  
Old November 4th, 2003, 10:08 AM
freemans-web freemans-web is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 258 freemans-web User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 50 sec
Reputation Power: 5
Can you view your webpages by using http://localhost from the machine the server is on? OR Can you view your webpages using http://your-machine-name from inside your network? If everyone else can connect to your website, it's neither a dns or router issue. You might substitute http://127.0.0.1 for localhost, if neither works try installing a loopback adapter.

Reply With Quote
  #4  
Old November 9th, 2003, 05:03 AM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 245 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 5 m 11 sec
Reputation Power: 5
configuration error DNS

Sorry for replying so late, but i had a accident (broke a leg)

This is what i found after typing
[root@server root]# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 1 0 127.0.0.1:32834 127.0.0.1:80 CLOSE_WAIT
udp 0 0 0.0.0.0:32768 0.0.0.0:*
udp 0 0 0.0.0.0:32769 0.0.0.0:*
udp 0 0 192.168.1.1:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:991 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
raw 0 0 0.0.0.0:1 0.0.0.0:*

I don't see my ip (192.168.1.1) with a port 80 bound to it. So this means that the apache config is wrong, but what and where?!!!?!?
I can see my page when i type in http://localhost

Reply With Quote
  #5  
Old November 9th, 2003, 01:47 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
This line:

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

Means that apache is listening on all interfaces port 80. So whether you're connecting to 127.0.0.1 or 192.168.1.1 or your public IP, you will always connect to apache.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #6  
Old November 10th, 2003, 02:52 AM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 245 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 5 m 11 sec
Reputation Power: 5
configuration error DNS

So what could be the problem? I am also running a ftpserver on the same machine. And when i try to connect to the ftp server from the same machine, i get this error message:" could not connect to server. Temporary error in resolving the name."
This is highly peculiar, because my resolv.conf reads:

domain mydomain.com
search mydomain.com
nameserver 192.168.1.1 ' this my server adress

Reply With Quote
  #7  
Old November 10th, 2003, 08:43 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
You need to follow freemans-web's advice and follow those diagnostic tests. Then let us know how things went.

Reply With Quote
  #8  
Old November 11th, 2003, 07:15 AM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 245 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 5 m 11 sec
Reputation Power: 5
configuration error DNS

I can see the webpage if i type in http://localhost , but how can i install a loopback adapter and where must i change http://127.0.0.1 in localhost.

Last edited by xyfix : November 11th, 2003 at 07:30 AM.

Reply With Quote
  #9  
Old November 11th, 2003, 08:32 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
You don't need to install a loopback device. You already have one cause localhost works and most undoubtedly uses 127.0.0.1.

I think I know what may be wrong. I want you to test something for me. Since I don't know what your IP is, go to the following URL and click the link and tell me if you get exactly the same response as when you connect to your own domain.

****

IF IP WORKS...

Then you need to do 1 of 2 things. Either configure BIND to use "Views" so that it returns the LAN IP for local requests, and the public IP for public requests.... or.... add the following line to your "/etc/hosts" file:

192.168.1.1 www.mydomain.com mydomain.com

IF IP DOESN'T...

This has got to be either a resolv.conf error or a DNS error, but since the resolv.conf file looks fine, and your site IS accessible from the internet, I really don't see how either one could be wrong.

Last edited by SilentRage : November 12th, 2003 at 02:16 PM.

Reply With Quote
  #10  
Old November 12th, 2003, 12:30 PM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 245 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 5 m 11 sec
Reputation Power: 5
configuration error DNS

Eureka!!! Silent Rage is defenitly the man. It works, I only had to configure BIND to use views.
Thanks to everyone who tried to help me and Silent Rage ofcourse.

Last edited by xyfix : November 13th, 2003 at 03:37 AM.

Reply With Quote
  #11  
Old November 12th, 2003, 02:15 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
er. I think I got the IP WORKS/DOESN'T instructions switched up. But glad you got it working. I'm removing the link from my previous post now so that I don't have to keep the file there.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsSystem AdministrationDNS > configuration error DNS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |