Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: brianr on April 27, 2015, 12:54:44 PM

Title: How to configure Domain without www to resolve to external IP
Post by: brianr on April 27, 2015, 12:54:44 PM
Anyone know how to use the Hostnames and Addresses page to configure a DNS entry for the domain without a prefix?

That is want to re-direct "mydomain.co.uk" to an external web server (as well as "www.mydomain.co.uk").

I do not want a wild card.

TIA Brian
Title: Re: How to configure Domain without www to resolve to external IP
Post by: brianr on April 27, 2015, 02:39:59 PM
Actually I realise that I was not quite correct above - I want to resolve "mydomain.co.uk" to another server on my local LAN, not an external IP.  Not sure if that makes any difference?
Title: Re: How to configure Domain without www to resolve to external IP
Post by: Xavier.A on April 27, 2015, 10:50:04 PM
http://www.schirrms.net/sme/SMEApacheReverseProxy.php?phpLang=en
Title: Re: How to configure Domain without www to resolve to external IP
Post by: janet on April 28, 2015, 12:15:19 AM
brianr

From memory put the IP of the local server in the Domains panel (or is it Hostnames ?)
...or look up the FAQ for proxy pass (for web)
& delegate mail domain for mail server.
Title: Re: How to configure Domain without www to resolve to external IP
Post by: brianr on April 28, 2015, 07:05:04 AM
brianr

From memory put the IP of the local server in the Domains panel (or is it Hostnames ?)
...or look up the FAQ for proxy pass (for web)
& delegate mail domain for mail server.

The hostname field insists on having something in it, so you can only do <something>.yourdomain.co.uk.

I can see that the proxypass woud do the trick, but it seems very complex for something so straightforward.

Looking here:

http://en.wikipedia.org/wiki/Zone_file#File_format

I can see this as a Zone file example:

example.com.  IN  A     192.0.2.1             ; IPv4 address for example.com

which looks exactly what I want to do.
Title: Re: How to configure Domain without www to resolve to external IP
Post by: janet on April 28, 2015, 09:37:25 AM
brianr

Proxypass & Delegate mail are simple one line db commands, the template method Xavier mentioned is somewhat more complex.

Title: Re: How to configure Domain without www to resolve to external IP
Post by: brianr on April 28, 2015, 10:36:10 AM
brianr

Proxypass & Delegate mail are simple one line db commands, the template method Xavier mentioned is somewhat more complex.

yes, I can see that now - thanks.