Koozali.org: home of the SME Server

Cloak webpage

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #15 on: December 19, 2006, 11:37:58 AM »
Yes they work fine now. I guess they just needed some time to refresh dns records.

You said that you have your domains resolve localy....
Ho do you do that because i can specify content (ibay i want to link to) when i choose to resolve it trough internet and this option doesn't exist when i resolve it localy. Or is it ok if i just resolve my domain localy (eg. sishell.net) and leave the mail.sishell.net and other stuff to resolve trough internet.

Do i set the domain (if i want to resolve it localy) trough hostnames and adresses or do i do it the same way i did it with external dns.
I have an option to set hostname (subdomain), domain and location. What do i set for location if i want to have the same efect.

I want to set it to resolve localy just because i have errors like the one i wrote few posts back. Or will the error stop if i empty the var/lib/dhcp/dhcpd.leases files. This resolve error is connected with seting my domain to resolve localy.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #16 on: December 19, 2006, 11:52:24 AM »
bpivk

> http://89.212.16.101/bio/example.JPG
> Or should i resolve my domains localy?

Quoting from the manual, hoping it will help you.

In most cases the DNS for the server is *not* handled by the server but by some Internet DNS servers. So, the default is to pass DNS requests for anything but the primary domain to the Internet DNS servers.

The primary domain is resolved locally as we generate (fairly) complete DNS records for that domain, including all local hostnames.

The new settings are there to allow for various configurations:

Simple setup where the SME Server is a gateway, but DNS is handled by Internet DNS servers
Moderately complex setup where the SME Server DNS should take preference over the Internet DNS records. You need to be careful here as the external world view will not match the internal world view. That's why it is not the default.
Complex setup where some domains are handled by internal/corporate DNS servers and we want to choose those in preference to the Internet DNS servers. This is a conscious decision to run a split-horizon/internal fake root where the Internet and Intranet have different DNS records.

If you set a domain to “Resolve locally”, the only DNS records seen will be the ones entered on the SME Server. However, since you need to set up the Internet DNS servers with the correct information anyway, why duplicate the work to enter it locally?

Note that in all cases the server will act as a DNS cache/proxy/forwarder and so all domains will actually _technically_ be “resolve locally”, but the dns cache will forward them to the chosen DNS servers.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #17 on: December 19, 2006, 12:09:53 PM »
bpivk

> Ho do you do that because i can specify content (ibay i want to link to) > when i choose to resolve it trough internet and this option doesn't exist > when i resolve it localy.

I have the option to choose either setting in Domains panel.
Is your server a gateway. I notice when set differently in the console when you first setup your sme, if another server is the gateway or set to provide DNS services, then you don't get some options.


> Or is it ok if i just resolve my domain localy (eg. sishell.net) and leave the mail.sishell.net and other stuff to resolve trough internet.

The manual advises to set your main domain to resolve locally and others to resolve to Internet DNS.


The hostnames and adresses panel allows you to specifiy where various "parts" of the domain get hosted eg you could have your web server for domainA on your sme server, but have mail for domainA handled on another server, etc etc etc.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #18 on: December 19, 2006, 12:41:55 PM »
Well domain sishell.net is resolved localy now and mail.sishell.net, www.sishell.net,... is resolved trough internet dns. So that should be ok?

Well mail and other stuff now work. The ony problem i have is with local (sishell.net) domain. http://sishell.net works but www.sishell.net and mail.sishell.net don't work.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #19 on: December 19, 2006, 02:23:34 PM »
bpivk

> http://sishell.net works but www.sishell.net and mail.sishell.net don't work

http://www.sishell.net gives

Unable to determine IP address from host name for www.sishell.net
The dnsserver returned:
Name Error: The domain name does not exist.

http://mail.sishell.net/
resolves OK to your roundcube webmail login

If you are using afraid.org then you have to pay them extra for the wildcard anything.yourdomain.com
To quote from their new user notification message
If thats still not enough, accounts may be instantly upgraded to
also include:
 - Wildcard DNS ability, *.anything.domain.com flows to you.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #20 on: December 19, 2006, 02:43:39 PM »
Yes i see that mail is working now.
But www.otherdomain.com is working why not sishell.net domain. I have two domains and one works and one doesn't.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #21 on: December 19, 2006, 03:05:17 PM »
bpivk

>... why not sishell.net domain. I have two domains and one works and one doesn't.

Do you have two DNS entries at zoneedit.com ie for sishell.net and for
www.sishell.net ?

Otherwise your earlier comment may apply
"I guess they just needed some time to refresh dns records. "
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #22 on: December 19, 2006, 03:10:18 PM »
I think that i'll wait a day and then report here if it works or not. I have been moving domains to and from zoneedit and afraid and now i'll just stick with zone and wait untill both of them refresh their records.

And thanks for your help and patience


Edit:
It works now, but i have another question...
What do i have to do to point domains to stuff installed in /opt.
I don't have an option to set that in domains.
"It should just work" if it doesn't report it. Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Cloak webpage
« Reply #23 on: December 19, 2006, 11:07:37 PM »
bpivk

> And thanks for your help and patience

Good that it all got worked out.


> It works now...

Keep in mind for the future that it can take up to 72 hours for DNS changes to propagate to all DNS/name servers in the world


> What do i have to do to point domains to stuff installed in /opt.

"stuff" installed in /opt gets configured at the time of installation of the application. Typically it is for the main domain of your server & would have a URL like www.maindomain.com/appname.

If you want an alternative domain name to access that, then point the alternative domain name to www.maindomain.com/appname
This is where your external cloaking tools are useful.

Alternatively change the configuration for stuff in /opt to be a new domain URL eg www.newdomain.com
Any requests arriving at your server for www.newdomain.com will automatically open the related stuff in /opt.

I think there are httpd custom templates created that facilitate the URL for apps in /opt, also look in any config file (eg config.php) for those apps.
...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Cloak webpage
« Reply #24 on: December 19, 2006, 11:18:32 PM »
Thanks.
Well there are only two pages  so i guess i'll cloak them. Both are important only for me so it doesn't matter.

Thanks again
"It should just work" if it doesn't report it. Thanks!