DNS server for local network
I want to configure nameserver for local area network. My registered host in Internet DDNS system is <my_host>.ddns.net
I want to use for my local network usage (not Internet) internal address like: host1.ddns.net host2.ddns.net etc and of course router as <my_host>.ddns.net As I wrote I use NO-IP DDNS system to access from internet my router (and the rest of local network by ports) as <my_host>.ddns.net So my zone definition file looks like this: Code:
[root@mackowiak named]# cat ddns.net.hosts Code:
[maciek@piotr ~]$ nslookup tv.ddns.net 192.168.0.7 Code:
[maciek@piotr ~]$ nslookup lilith.ddns.net 192.168.0.7 Code:
[root@mackowiak named]# cat /etc/named.conf Of course proble is only with ddns.net domain because other domains/hosts are resolved properly. Just like this: Code:
[maciek@piotr ~]$ nslookup www.playboy.com 192.168.0.7 |
You can not just go adding yourself onto someone else's domain and hope that it will work. It won't.
If you want internal names then you setup your network to use the ".local" domain as that is reserved for local networks. |
OK. But I use several apps like OwnCloud located on my home server. At this moment it is necessary to have two configs for each service, first for use when I am outside my home lan and second for internal home usage.
Is it possible to address in both cases (inside or outside my house) as <my_host>.ddns.net. That is using the same domain? If so any example? |
All times are GMT -5. The time now is 08:31 AM. |