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 October 14th, 2003, 12:09 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
dns problem

Hello, i think i have a problem with my dns configuration . I am running Red Hat 9 and there is also apache running on the server. And my apache is running correct i can see my webpages on other machines (clients) in my network, but I can't contact my site from the server on which apache is running. And ofcourse i can see all other pages on the server. I think it's a dns related problem and not a apache one
__________________

Reply With Quote
  #2  
Old October 14th, 2003, 12:27 PM
dag-otto dag-otto is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Ottawa,Canada
Posts: 28 dag-otto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is the name server the same as your apache box?
If so modify your /etc/resolv.conf to point to either the ip of the box or localhost.

Reply With Quote
  #3  
Old October 15th, 2003, 01:52 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
dns problem

You're right my nameserver is also my apache box
But applying your solution , as was mentioned in your previous posting, didn't help.
this is how my resolv.conf looks like:
nameserver 192.168.1.1
nameserver 194.134.5.5
nameserver 194.134.0.97
where 192.168.1.1 is my server ofcourse

Reply With Quote
  #4  
Old October 15th, 2003, 01:57 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
put only "192.168.1.1" in your resolv.conf. Then setup your DNS server to do "forwarding".
It won't work otherwise.

hth,
M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #5  
Old October 16th, 2003, 11:19 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
whether his DNS server does forwarding or not has no effect on whether either apache or the DNS server provides service locally.

Last edited by SilentRage : October 16th, 2003 at 11:22 AM.

Reply With Quote
  #6  
Old October 16th, 2003, 12:25 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
No, but the resolver library configuration does. He cannot have three nameservers in /etc/resolv.conf and expect the system to use another one if one does not have the answer - AFAICS his problem here.

The nameservers in /etc/resolv.conf are expected to deliver the same answers, the system will pick another one in case of failure, not when it gets a negative answer.
Plus, it can depend on circumstances chosen by the OS (see the RFC).

conclusion: use one internal nameserver with forwarding.

hth,
...M

Reply With Quote
  #7  
Old October 16th, 2003, 04:08 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
It sounded like to me that you are saying you HAVE to setup BIND to do forwarding in order to locally access the webserver. I was disagreeing. I can go into why if you really do think you have to setup BIND to use forwarding to locally access the webserver.
__________________
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
  #8  
Old October 17th, 2003, 12:22 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
I think he could need forwarding since he had some public DNS servers in his resolv.conf ... you know, preventing his next question "Now the internal server works, but I can't connect to the internet anymore..."

...M

Reply With Quote
  #9  
Old October 17th, 2003, 03:56 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
ah. well. You don't need forwarding to have BIND resolve queries for domains not hosted by its server. It will just have to start at the root servers and resolve the domains itself. The better option is to use the ISP provided caching dns servers as the target of forwarding, but forwarding is never required to make things work. The only exception I can think of is if an internal dns server does not have direct access to the internet and must be told to forward to a gateway dns server.

Reply With Quote
  #10  
Old October 17th, 2003, 11:37 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Now I can see it too... When talking to people, I usually refer to using a cache zone as "forwarding" too because that's what it does...
"forwarding" is a bad choice of wording, my fault.

M

Reply With Quote
  #11  
Old October 28th, 2003, 06:06 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
dns problem

Guys I tried all the above solutions mentioned in the previous postings , as far as i could understand it. But it still doesn't work, what should i do according to the postings of Hirsch and Silent Rage, can somebody summarize it ?

Reply With Quote
  #12  
Old October 28th, 2003, 12:19 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Summary:
Quote:
put only "192.168.1.1" in your resolv.conf. Then setup your DNS server to do "forwarding".

Where "forwarding" is either
- using a cache zone (the one called "." with the "root.hints" file)
- or using the "forwarders" option of bind (put the name server IPs that you removed from your resolv.conf there as forwarders, this is the recommended way).

If the "forwarders" option of bind does not work for you:
- maybe your provider blocks you from using his DNS as forwarders (probably by accident)
- use the "query source" option of bind specifying your official IP as source
- use the "query source" option to specify a port > 1024 so the other end cannot tell that you are doing forwarding (untested, not 100% on that)

If the "root.hints" zone does not work, update the file. iirc some of the root servers changed their IPs recently or something (not sure, but this helped a friend of mine, his default file from a bind installation was from around 1997)

... And it would help alot if you told what "does not work" means for you We need some lines from your log file, feed us please...

hth,
M.

Reply With Quote
  #13  
Old October 29th, 2003, 01:04 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
dns problem

First of all i like to thank everybody whose helping me out. What i mean with " it's not working" i have a apache webserver running on the same machine as my DNS server. I can get any page from the internet on my machine, except my own webpage. My resolve.conf reads :
domain bahadoer.homelinux.com
search bahadoer.homelinux.com
nameserver 192.168.1.1
You asked me for logfiles, but where does named put it's log files.

Last edited by xyfix : October 29th, 2003 at 01:06 PM.

Reply With Quote
  #14  
Old October 30th, 2003, 12:27 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
/me is reminded of the SNL show where the nerds are like "MOVE!" to fix the employee's computer themself

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsSystem AdministrationDNS > dns problem