Subdomains for server behind router
Hi!
I have server (ip: 192.168.1.2, openSUSE 12.2, Apache 2) behind router. I'm using FreeDNS (afraid.0rg, "o"->"0" because of publishing links block) and I assigned subdomain (say x.afraid.0rg) to router, which has static external ip. After 443 port forwarding my sites work well, but I want to have several subdomains: hg.x.afraid.0rg, trac.x.afraid.0rg, owncloud.x.afraid.0rg, … assigned to the same server. Apache using those subdomains to host mercurial server, Trac, OwnCloud, … by the help of virtualhosts. I've added lines to dnsmasq config:
local-ttl=1
address=/.x.afraid.0rg/192.168.1.2
address=/.x.afraid.0rg/[server ipv6 address based on MAC]
Now subdomains work from lan. How can I make them work from Internet?
PS I'm using Hurricane Electric IPv6 Tunnel Broker and I have static external ipv6. So it would be better if subdomains work with both: ipv4 and ipv6. But ipv4 is more important because some client computers have no support ipv6.
PSS I also have those lines in dnsmasq config to get domain "lan" in my lan (correct me, please, if this method is wrong):
bogus-priv
expand-hosts
domain=lan