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

Reply
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:
  #1  
Old September 5th, 2004, 10:41 AM
kurumi kurumi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 15 kurumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lan dns domain

Hi alls,
I have just set up a local dns with the following configuration:

nameserver:192.168.1.22 ( dns server uses bind)
router.local:192.168.1.1
hostname1.local:192.168.1.22
hostname2.local:192.168.1.24(www,mail...)
hostname3.local:192.168.1.23

After setting up i dig hostname2.local it points to 192.168.1.24,i can access its web server by typing http://192.168.1.24 but when i type http://hostname2.local i cann't access it,so my question is that why i couldn't acsess http://hostname2.local and what should i do to solve the problem.Please help me.
Here i attach the configuration files please have a look at them.
Attached Files
File Type: txt named.txt (1.8 KB, 61 views)
File Type: txt local.txt (573 Bytes, 51 views)
File Type: txt rev.192.168.1.txt (541 Bytes, 52 views)

Reply With Quote
  #2  
Old September 5th, 2004, 12:50 PM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
I don't think your problem is related to your dns configuration
because when you use dig to get the ip is working great,
so this means that your dns server configuration is good.
If the configuration at your dns server was wrong then dig
will not be able to get the info.
Did you try the dig command and the web access at the
same pc?

______________________________________________
Free Dynamic DNS and Static DNS Services
http://linuxrc.org

Reply With Quote
  #3  
Old September 5th, 2004, 01:43 PM
kurumi kurumi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 15 kurumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Oh i don't use the same pc, i use another one in lan because the dns pc doesn't have a browser ... strange thing that i can't access http://hostname2.local .Sorry if you can tell me your opinion about this.

Reply With Quote
  #4  
Old September 6th, 2004, 11:00 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
Did you config the other pc that have a browser to use
the dns server that you have been configure, the one
that you use for the dig command?


______________________________________________
Free Dynamic DNS and Static DNS Services
http://linuxrc.org

Reply With Quote
  #5  
Old September 6th, 2004, 12:59 PM
kurumi kurumi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 15 kurumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your help a lot ,a very good solution,i am using openbsd for dns(192.168.1.22) and linux for web server and winxp for another lan pc.Please tell me how i can configure the linux pc and winxp to use dns server of the machine 192.168.1.22.Again ,thanks you very much!

Reply With Quote
  #6  
Old September 6th, 2004, 02:41 PM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
For linux edit: /etc/resolv.conf
nameserver 192.168.1.22

For XP I really don't know, I never used it before, sorry.

______________________________________________
Free Dynamic DNS and Static DNS Services
http://linuxrc.org

Reply With Quote
  #7  
Old September 7th, 2004, 01:39 AM
kurumi kurumi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 15 kurumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have edited resolv.conf like what you told but somehow still now i couldn't access the local site,though i in linux when i dig it understands and points to the local ip ,again wait for your suggestion,thanks!

Reply With Quote
  #8  
Old September 8th, 2004, 11:49 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
If you dig the host-name and you get the IP, then everything
is working (you succeed to resolv the ip), but if you say that
from the browser you can't access, only with the IP, than I
really don't know what to say, because I think the problem
is related to your browser. I'm sorry, but I don't have any
experience with the browser.


__________________________________________
Free Dynamic DNS and Static DNS Services
http://linuxrc.org

Reply With Quote
  #9  
Old September 11th, 2004, 01:00 PM
kurumi kurumi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 15 kurumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thank

Anyway ,thank a lot murphy_young!

Reply With Quote
  #10  
Old September 11th, 2004, 03:48 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 35 m 27 sec
Reputation Power: 77
Don't give up yet. Give me a turn at helping you. One thing I love to have people do is use "ping". Not to check the status of a server, but to see if the SYSTEM successfully resolves the domain. So at the client pc, execute the following commands and attach a copy so that I can look at it.

ping hostname2.local
dig hostname2.local

>>>murphy_young

For future reference, know that nearly all programs including browsers on a system makes a system call "gethostbyname" to resolve domains. gethostbyname resolves the domain first from the hosts file, then using the dns servers in resolv.conf. This is true for both linux and windows (even windows can have a resolv.conf, but normally this info is stored in the registry). This is why dig can work, but a browser may fail. dig doesn't call gethostbyname, and instead communicates via sockets to resolve domains.
__________________
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

Last edited by SilentRage : September 11th, 2004 at 03:55 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Lan dns domain


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway