Koozali.org: home of the SME Server

* Entry for a Domain

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
* Entry for a Domain
« on: October 06, 2014, 10:38:26 AM »
When i administer a Domain that i set to Local Nameservice and try to add a * Record .. i always get a Message stating that is not possible!? Why is that so!?
best
Rudi

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: * Entry for a Domain
« Reply #1 on: October 06, 2014, 10:52:01 AM »
please define what you are trying to do with an example (we can't see your monitor) and what is your problem, not your solution.

Thank you

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Re: * Entry for a Domain
« Reply #2 on: October 06, 2014, 11:13:57 AM »
sorry!

Well for Example:
first i add a Domain to my Server 86.59.32.54 ::: 4tel.at
When adding, i choose the option ::: "Local DNS"

Now the domain is reachable when somone typs "http://4tel.at" or "http://www.4tel.at" into his browser. But i want the domain to be reachable under ANY subdomain someone typs by purpose or by mistake like for example : "http://ww.4tel.at"

Normally i configure my external Nameserver with a Line like : *.4tel.at in A 876.59.32.54 ; but this alone only brings the "wrong"typer to the Domain when it is the primary domain of a server. but i use many domains on each server.

Was this now understandable?
Best
Rudi

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: * Entry for a Domain
« Reply #3 on: October 06, 2014, 11:47:30 AM »
AFAIK, that's not supported by SME..

maybe you can achieve it via a custom template, but I'm not a dns guru


Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Re: * Entry for a Domain
« Reply #4 on: October 06, 2014, 12:16:51 PM »
AFAIK, that's not supported by SME..

maybe you can achieve it via a custom template, but I'm not a dns guru
@not supported : but itz should be supported i think!
@Custom Template .. thanks for the tip! i will try .. 

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: * Entry for a Domain
« Reply #5 on: October 06, 2014, 12:20:40 PM »
@not supported : but itz should be supported i think!

well, in that case open a NFR in bugzilla and think about sponsoring/donating..
we all here have requests about new features, enhancements and so on..
we "just" need 2 things:
- NFR in bugzilla
- resources (money/time)

nothing comes for free :)

guest22

Re: * Entry for a Domain
« Reply #6 on: October 06, 2014, 12:47:55 PM »
Rudi,

who or what is your DNS server? Is it a domain registrar or local?

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: * Entry for a Domain
« Reply #7 on: October 06, 2014, 01:04:48 PM »
Well for Example:
first i add a Domain to my Server 86.59.32.54 ::: 4tel.at

I was able to add a wildcard host entry into an existing domain on my SME 8.1 server using:
Code: [Select]
db hosts set  '*.a.localdomain.org' host ExternalIP '' HostType Self InternalIP '' MACAddress ''
signal-event remote-access update
sv t tinydns
sv t dnscache
NOTE: those are pairs of single quotes indicating empty arguments after ExternalIP, InternalIP and MACAddress

Afterwards I was able to browse to "x1.a.localdomain.org" from my LAN workstations and get the same wordpress site I get at "a.localdomain.org".  I don't have any specific host entry for "x1.a.localdomain.org".


You may need to play with .htaccess for the underlying domain to get httpd to behave as you want it to -- I think Wordpress is doing this for me (redirecting me to the desired URL for this ibay).

Offline Rudi

  • **
  • 41
  • +0/-0
    • IT Consultant & Develpoment
Re: * Entry for a Domain
« Reply #8 on: October 06, 2014, 02:23:35 PM »
I was able to add a wildcard host entry into an existing domain on my SME 8.1 server using:
Code: [Select]
db hosts set  '*.a.localdomain.org' host ExternalIP '' HostType Self InternalIP '' MACAddress ''
signal-event remote-access update
sv t tinydns
sv t dnscache
NOTE: those are pairs of single quotes indicating empty arguments after ExternalIP, InternalIP and MACAddress

Afterwards I was able to browse to "x1.a.localdomain.org" from my LAN workstations and get the same wordpress site I get at "a.localdomain.org".  I don't have any specific host entry for "x1.a.localdomain.org".


You may need to play with .htaccess for the underlying domain to get httpd to behave as you want it to -- I think Wordpress is doing this for me (redirecting me to the desired URL for this ibay).

Great, thanks! That was exactly what i was looking for!
I will test this and get back here with my experience!

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: * Entry for a Domain
« Reply #9 on: October 06, 2014, 06:05:45 PM »
so, at the end, seems like the feature is supported but from server-manager


guest22

Re: * Entry for a Domain
« Reply #10 on: October 06, 2014, 08:02:07 PM »
so, at the end, seems like the feature is supported but from server-manager

Stefano,

can you explain what you mean please? Or what to do in server manager to get this done?

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: * Entry for a Domain
« Reply #11 on: October 06, 2014, 08:15:19 PM »
I mena that it seems to me that db/templating system already supports such a feature, but you can't create such a record from server-manager (I guess because of field validation)

hope I cleared enough

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: * Entry for a Domain
« Reply #12 on: October 07, 2014, 01:16:00 PM »
I think Stefano missed a word:
so, at the end, seems like the feature is supported but NOT from server-manager

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: * Entry for a Domain
« Reply #13 on: October 07, 2014, 01:27:50 PM »
yes.. I wrote it while.. ahem, driving :-D