Koozali.org: home of the SME Server

How to configure Domain without www to resolve to external IP

Offline brianr

  • *
  • 990
  • +2/-0
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
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline brianr

  • *
  • 990
  • +2/-0
Re: How to configure Domain without www to resolve to external IP
« Reply #1 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?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Xavier.A

  • ****
  • 104
  • +0/-0
“When the wise man points to the moon, the fool looks at the finger.”

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to configure Domain without www to resolve to external IP
« Reply #3 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline brianr

  • *
  • 990
  • +2/-0
Re: How to configure Domain without www to resolve to external IP
« Reply #4 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to configure Domain without www to resolve to external IP
« Reply #5 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.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline brianr

  • *
  • 990
  • +2/-0
Re: How to configure Domain without www to resolve to external IP
« Reply #6 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........