my another doubt is that, is there any stetting to be loaded with my dlink DSL-2730 router to map the ip address of raspberry pi with domain name(in router)?
Something like that, yes.
The problem is, just because your Apache claims to accept requests for www.myownraspberrypi.com
, it doesn't automatically mean other computers will send requests to it. (Imagine, what would happen if you configured your Apache for www.google.com
?) You still need to make that domain name actually point to your π's IP address.
The client computer (your PC) uses one of three ways to translate www.myownraspberrypi.com
into an IP address:
- the computer's own
/etc/hosts
file; - various LAN-only name discovery protocols;
- Internet's DNS system.
If you only want to access the web server from one PC or two, you can add the name in their hosts
files by hand, like this:
192.168.1.135 www.myownraspberrypi.com
Some routers do have an option to make a domain name available to the entire LAN, although often limited to hostname.home
or such. Look for a section called "Local DNS". (Though it would be much better to use .home
than .com
for this purpose.) But I don't think D-Link routers have that feature.