DNS bind locally(LAN) cant resolve my fqdn
im all set up. my configuration is all done. i can ping my hostname. i can nslookup my ipaddr. it can resolv my ip addr. i can dig my ipaddr and prompt and answer.
Since I want my site to be viewed locally. my fqdn must be searchable in anothers computer browser. Other pc is using windows by the way and it can see my page just typing my ip but it can't browse my page using my domain name. i enable my port 80,53(tcp,udp)and i dont know if it has something to do with port forwarding. |
If I get you right you just need to edit dns-settings for yor domain.
That means you login to <whatever your nameserver for domain is> and add an A-record for www.yourdomain pointing to your public ip. If your server is on private ip, behind a firewall, then you also need to configure port forwarding. (When you say you can ping your hostname, you mean you can ping it from the server itself, right?) |
@OP
Do you have the second machine set up to use your DNS server? If so, running the same nslookup command should yield the same results. If not, look into your network settings on the Windows machine and change it's DNS to look at your DNS server. |
yes i can ping it. i add "www.rolem.apc.local. IN A 192.168.1.8" in forward.zone and is still the same.
i had running centos on my laptop and windows7 on my pc in the same LAN. if i type 192.168.1.8 in my windows browser which is my centos ip it outputs my html page. but it coulnt find it when i type rolem.apc.local do i need to configure my windows just to resolv my domain name |
So you have a local hostname only, it's not registered. I got you wrong there so forget about my first post.
How is your network setup? Do you have a functioning DNS server on your LAN? One easy way to do it - and necessary if you don't have a dns server - if it's just one computer that needs to reach your site, then add fqdn+ip in their hosts file. |
Quote:
1. click on start 2. click on all programs 3. accessories 4. RIGHT CLICK wordpad, run as administrator. if you have UAC still enabled, tell it YES. 5. open c:\windows\system32\drivers\etc\hosts edit it to look something like the following: Code:
# localhost name resolution is handled within DNS itself. |
still the same. ill try again later
|
if you adjusted your win7 hosts file as administrator, rebooted and are still having the same problem, then it is a MS problem. the hosts file just like the /etc/hosts in Linux tells the computer who the IP belongs to.
ex: a good way to block things like doubleclick.net and what are in the MS world is to put that in the hosts file as: Code:
127.0.0.1 doubleclick.net so if you properly populated your hosts file with the proper IP and URL, and it is still not going to the correct location, then it is your win7 box doing something stupid, but those are rather big IF's |
Thats correct making an entry in c:\windows\system32\drivers\etc\hosts properly is the right solution to your prob, if it si not working for you .. go ahead to the control panel-->administration-->services (if i recalled it corectly) and check the concerned services are ok on the win 7 machine or not.
|
All times are GMT -5. The time now is 01:52 PM. |