Koozali.org: home of the SME Server

Public DNS on SME 6.01

Offline smeghead

  • *
  • 557
  • +0/-0
Public DNS on SME 6.01
« Reply #60 on: February 24, 2005, 02:39:13 AM »
Its all done for you.

The script merely consolidates the info from various post to this forum about how to set this up.  As this info could be difficult or fiddly for a new user to implement without error I wrote the scripts to allow anyone to try this; I wrote the uninstall script to allow an easy removal if something didn't work as expected or something broke.

HTH
..................

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Public DNS on SME 6.01
« Reply #61 on: February 24, 2005, 06:30:35 PM »
smeghead

Thank's for the reply very helpfull

GREATFULL

Alan Stokes
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Public DNS on SME 6.01
« Reply #62 on: April 28, 2005, 07:10:16 AM »
Hello smeghead. Please, encoded files remove.sh and shutdown_external_dns.sh to unix format. I test only for 6.0.1
Thank you for this contrib
Normando Hall

Offline edb

  • *
  • 546
  • +0/-0
Public DNS on SME 6.01
« Reply #63 on: April 30, 2005, 12:29:27 AM »
I tested on my 6.0.1 and it worked perfectly.

I've waited along time for something like this.
Excellent work!! Thank you

Ed
......

Offline edb

  • *
  • 546
  • +0/-0
Public DNS on SME 6.01
« Reply #64 on: April 30, 2005, 10:49:11 PM »
Quick question

Is this PubDNS contrib setup for a Primary or Secondary Name Server?
I would like to run my SME as a Secondary Name Server.

Also, when I do an "nslookup mydomain.com dnsserverIP" it returns the external IP for the mydomain.com Domain. But if I do an "nslookup www.mydomain.com dnsserverIP" it resolves to the internal IP for the www.mydomain.com. Why?
BTW: www.mydomain.com is a site I'm hosting
(I created a Domain in server manager then created an ibay "mydomain.com" to link to)

Should the Hostnames & addresses section of server manager be set to "Global|self" or "Global|local" specifying the internal IP & Global/external IP?

I do have it registered as a NameServer with the registar.

Thanks

Ed
......

Offline edb

  • *
  • 546
  • +0/-0
Public DNS on SME 6.01
« Reply #65 on: May 02, 2005, 05:19:11 AM »
I also get these errors in /var/log/messages when I try to create a new Domain or delete an existing Domain

Can't exec "/etc/e-smith/events/domain-delete/S51update-dnsext": Permission denied at /usr/lib/perl5/site_perl/esmith/event.pm line 124.

Can't exec "/etc/e-smith/events/domain-create/S51update-dnsext": Permission denied at /usr/lib/perl5/site_perl/esmith/event.pm line 124.
......

Offline smeghead

  • *
  • 557
  • +0/-0
Public DNS on SME 6.01
« Reply #66 on: May 02, 2005, 05:54:07 AM »
.. I'll try to make some time to check this out, I would guess some sorta perms prob but will look into it further.
..................

Offline edb

  • *
  • 546
  • +0/-0
Public DNS on SME 6.01
« Reply #67 on: May 04, 2005, 05:04:17 AM »
Anyone else have the problem of the PubDNS is resolving to an internal IP when it should be pointing to the external IP?
......

Offline edb

  • *
  • 546
  • +0/-0
Public DNS on SME 6.01
« Reply #68 on: May 05, 2005, 06:53:30 AM »
Since I have received no replies to my messages I can only gather that no one else has tested this and no one knows how to fix it.

I presumed that because the install went fine (which seemed to be the biggest issue according to the thread)that it would do what it was suppose to do according to the name (act as a public DNS server).

Silly me  :hammer:

I would not suggest that anyone bother installing this contrib until it can actually display the external IP to the rest of the world the way it should when resolving domains.
......

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Public DNS on SME 6.01
« Reply #69 on: July 22, 2005, 06:26:14 AM »
I installed this and works as promised, except that as edb pointed out "domain.com" is listening on the external IP but "www.domain.com" is pointing to the internal IP.
smeghead help us please!

Offline smeghead

  • *
  • 557
  • +0/-0
Public DNS on SME 6.01
« Reply #70 on: July 22, 2005, 08:56:24 AM »
Hmm, I will check this out this w/e and post back as soon as I can; feel free to prod me with a reminder next week if I haven't replied :-)
..................

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Public DNS on SME 6.01
« Reply #71 on: July 22, 2005, 03:53:41 PM »
Thanks smeaghead,
I wonder if this has to do with my box, I did not use the script for the install and followed both how-to and the instructions you provided with the zipped files. I'll be breaking my head in meantime  :hammer:

Regards,

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
RESOLVED
« Reply #72 on: July 22, 2005, 06:20:35 PM »
So to make it work right, you need to edit the file
/etc/e-smith/templates-custom/var/service/tinydnsext/root/data/60hostARecords
and modify
Code: [Select]
if ($hosttype eq 'Self')
            {
                $anIP = $LocalIP;

by
Code: [Select]
if ($hosttype eq 'Self')
            {
                $anIP = $ExternalIP;


then
 /sbin/e-smith/expand-template /var/service/tinydnsext/env/IP
/sbin/e-smith//expand-template /var/service/tinydnsext/root/data
cd /var/service/tinydnsext/root
/usr/local/bin/tinydns-data
/etc/rc.d/init.d/tinydnsext restart

And www.domain, ftp.domain, mail.domain, etc. all should now work.

Thank you all,

Offline smeghead

  • *
  • 557
  • +0/-0
Public DNS on SME 6.01
« Reply #73 on: July 22, 2005, 07:17:44 PM »
.. good catch stuntshell, I will update accordingly
..................

micronator

www.domain.com and domain.com
« Reply #74 on: July 22, 2005, 07:19:09 PM »
While searching the forum I found this thread.

It looks that I have the same problem as "stuntshell".
I didn't install the stuf you're talking about.
It is a new installation.

I am using dyndns.org.
The "Primary" domain is (domain1.dyndns.org)
I added a second domain (domain2.dyndns.org)

I made an ibay for (domains2)
- dom2
- admin
- write=group, read=everyone
- Entire internet / no password
- CGI enabled

I created a "Domains"
- Domain name: (domain2.dyndns.org)
- Content: I selected the ibay for (domain2.dyndns.org)

I created a "Hostnames and addresses" for (domain2.dyndns.org)

The primary domain (domain1.dyndns.org) works perfectly.
http://www.domain1.dyndns.org
http://domain1.dyndns.org

I installed Xoops "xoops_2013fr" in it, same version as for (domain1.dyndns.org).
All went well.
I rename index.html to index.html.sme.org

In my browser I can go to (http://domain2.dyndns.org) but not to (http://www.domain2.dyndns.org).
www.domain2.dyndns.org could not be found. Please check the name and try again."

I looked into httpd.conf and somewhere it says: user www and group www.
I (chown -R www:www *) but same problem.

I looked into Primary and it was (root:www).
I (chown -R root:www *) but same problem.

The permissions inside ibays:
drwxr-xr-x    6 root     root    4096 Jul 15 08:59 awstats
drwxr-xr-x    7 root     root    4096 Jul 19 11:39 Primary (for domain1)
drwxr-xr-x    7 root     root    4096 Jul 21 23:32  dom2 (for domain2)

The permissions inside dom1:
drwxrwsr-x    2 root     www      4096 Nov 19  2003 cgi-bin
drwxrwsr-x    3 root     www      4096 Jul  7 10:11 docs
drwxrwsr-x    2 root     www      4096 Nov 19  2003 files
drwxrwsr-x   14 root     www      4096 Jul 22 12:12 html
-rw-rw-r--    1 root     www   1868854 Jul 16 12:23 xoops_2013fr.zip

This thing is driving me crazy.:hammer:

Any help appreciated.
Thank you.

Michel-Andre