|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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!
![]() |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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!
|
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
thank
Anyway ,thank a lot murphy_young!
|
|
#10
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Lan dns domain |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|