Koozali.org: home of the SME Server

Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server

indiLinux

Hello ,

I would first like to describe my Setup so that People can help me to
make the correct settings at Last.

1. Having SME 7.1 Box with 2 Network cards (eth0 / eth1)
2. eth1 is connected to external Router provided By ISP and Having
Static Ip Provided By ISP
3. eth0 having connection sharing with Local LAN with

eth0:

Ip address : 192.168.0.1

Netmask : 255.255.255.0

Gateway : Static Ip of eth1 (ISP Provided)

4. there is ip_forward is enbled

5. /etc/resolv.conf Having 2 DNS Entries that too provided By ISP
when they provide me router and Static IP.

6. Running firestarter for real time event logging and all internal
LAN is accessing internet and Proxy of this SME Box well.

Then i Registered one Domain Name with another Hosting Organization "
www.xyz.com" .

Then Started Suse Box another Service i.e Mail Server and created four
users MAILDIR format and Mail Domain Name as Static IP.

Now i got a Domain Manger from my domain registrar along with there 2
DNS Name Servers like ns1.hosting.com / and ns2.hosting.com

_/*What I want */_

i want to make this domain name to point to My SME box so that i can
host apache enabled site and my own Mail server .

So how i can make this happen .

i want my own SME Mail Server running with this registered domain name .

few days back i ask "Live Help" of My Domain Registrar so they told me
to purchase a Hosting Plan and Web Hosting Manager and then Point MX
Record to my SME Static IP .But i Needs to upgrade a package from
domain manager to Hosting Manager .which i dont want to do .

Now Kindly any one help how can i make this Settings Happen.

Hope I Explain well.

Thanking U All.

Offline compdoc

  • *
  • 226
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #1 on: May 05, 2007, 07:51:00 PM »
you modified /etc/resolv.conf by hand, or are you just saying the entries are correct?

I dont believe eth0 should have a gateway ip assigned - only eth1 should. Did you modify this by hand? Normally, only one interface is assigned a gateway...

As far as domains go, you need a DNS hosting provider. Does your registrar provide this service? Some, like Network Solutions do. You just point all domain names you want to your static ip, as well as their mx records for mail.

I dont know whats included by your ISP's hosting plan or web hosting manager, but I would think you dont need that, since youre hosting your site. Unless this is thier dns hosting service...

In SME, you just create all the domains you wish, and create seperate ibays for each, and place the html files in the right folders.

I would avoid modifying any conf files by hand, since SME does this for you in normal circumstances when you use the server-manager...

indiLinux

Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #2 on: May 06, 2007, 09:21:19 AM »
Yes u are right , Before SME i had RHEL and there i need to put the Entries of MY ISP DNS1 and DNS2 by hand editing , but when i Installed SME it does automatically and sharing was running on LAN clients out of the box coz of SME transparent squid configuration.

But i tried modifying the " /etc/resolv.conf " by hand and remove the entry 192.168.0.1 and
insert
nameserver 1
nameserver 2
of My ISP Provided .

then i build a small site using SME site builder .

i tried accessing that site from my Home ISP connection and its shown but i used to access it via
"Static IP " so i thought what if a move step ahead and build some beautiful site and host it on sme server as its easy to manage .

So i purchase domain name Say Example "www.xyz.com" in $5.

now my Hosting manager ask me do you want Hosting plan for this domain , so i replied no i am having SME server of my own that site i would like to host using this domain name .

Then Hosting Organization has given me Domain Manager not Hosting or WHM manager .

so Now i opend that Domain Manger so its showing me my personal and billing info Plus
1 NS1.xyz.com
2. NS2.xyz.com

in Name server section .

So now questions is do i have to modify this NS1 and NS1 and write the Static DNS of my ISP "/etc/resolv.conf" here .so that this domain can point to my site SME box.

kindly help How to do it .

Once i got succeed , i have to deploy SME for 3 Huge Universities and Forums of Students .and Open Source Project Board etc.

Thanking U All.

Offline compdoc

  • *
  • 226
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #3 on: May 06, 2007, 09:46:32 AM »
Well, you did the wrong thing. You should not edit /etc/resolv.conf by hand. Put it back to this:

domain xyz.com
nameserver 192.168.0.1

/etc/resolv.conf is only for your private network, and does not help you for this.

You need to have a provider host your DNS records for the world to access the site. If your domain name costs $5, I doubt it would be included. You can google 'dns hosting' and find a few.

You have not said if your registrar's 'WHM manager' is for DNS or not.

Also, sometimes your broadband modem is assigned the static IP, and you need to port forward the right ports to your SME box. Other times, you assign the IP directly to your external network card. It depends on whether the modem is in bridge mode or not.

Can you access the box using the static IP or not? You havent said if this is working...

Offline Gaston94

  • *****
  • 184
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #4 on: May 06, 2007, 10:33:06 AM »
Hi,
you are definitely on the wrong way. Just get back on which feature you'd like (correct me if I misunderstood):
 - you have your own web server (SME)
 - you have a static IP
 - you have your own domain name (mycompany.tld)
and
 - you want worlwide user to access your web site at www.mycompany.tld on your web server.

You DO NOT need to perform any changes in the way SME is performing DNS service or in configuration files (never edit by hand before looking the file is not template or db driven).

The only think you have to do is to ask your registar to update it's DNS server (ns1.xyz.com and ns2.xyz.com) with the correct @IP (your static one) : this is a standard service.
This information will be spreadred into the root DNS server within 24 hours and so anyone worldwide will be able to connect your web server  8)

Regarding the way you can access your site from your internal network (LAN) , set your workstation using your SME as DNS server, so you will use the correct @IP and not get any FW issues, and that's all :P

G.
PS and of course you should have check that you can access you server with the external @IP adress as suggested above ...

indiLinux

Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #5 on: May 06, 2007, 11:18:36 AM »
Really Thanks .
I would like to first answer the question of

"compdoc"
========================================
You need to have a provider host your DNS records for the world to access the site. If your domain name costs $5, I doubt it would be included. You can google 'dns hosting' and find a few.

You have not said if your registrar's 'WHM manager' is for DNS or not.

ANSWERS :

Yes i have only paid $5 to get a domain name "www.xyz.com" and after that they have provided me "Domain Manager" like interface which is really not like cPanel or any thing else its has only 3 fields out which 2 are editable
I have copied below the site page of my domain manger as it is :

===========================My domain Manager screen shot below======
- Manage Name Servers For www.xyz.com

    * To replace a nameserver, simply edit the existing hostname.
    * To remove a nameserver, simply cleanup the existing hostname.
    * To add a nameserver, simply fill an empty field for hostname.

    * IP addresses are not displayed by certain registries. This does not affect the operation of the nameserver.
    * ** IMPORTANT: Before adding additional name servers to your configuration, you should be sure that the name server has setup correctly. 24 - 48 hours after you submit a request for an additional name server, it will be in the rotation for authoritative lookups and if it is not setup correctly, your site will take a long time to resolve when visitors try to find you.
    * The order of the nameservers is not relevant

                    Server Hostname    Server IP Address

Primary:    ns2.dot5nameservers.com   
Secondary:    ns1.dot5nameservers.com
Nameserver 3:        --empty--
Nameserver 4:        --empty--
======================================
Another Screen from Domain Manager shown below
====================================

Manage Nameserver Hosts

NOTE: If you rename the nameserver hostname to a different base domain, you will
have to manage the new domain's profile in order to make additional changes
to the nameserver.

E.g., changing ns1.foo.com -> ns1.bar.com would require you to login to
bar.com's profile to manage the nameserver after you made your changes.


NameServer    New HostName    IP Address    Action
 


- Create Name Server -

NOTE: If you do not have dns software running on this host/ip, you probably do not want to use this feature.

Once you have created your name servers, if you wish to use them on your domain, you must manually add them through the main "Name Servers" section.


Server Hostname    .xyz.com
Server IP Address    --empty--


================================Screen Ends=========

Hope now i explain well.
so here do i need to put entry of My ISP provided  DNS or Shud i put a Static IP of My SME Server here.
I can access my SME Server Public IP from any location .Its Running fine.
Its in Server & Gateway Mode.
Its Router Provided By ISP with ISP's own DNS Entries and Public IP(Static IP).

Now kindly let me know what to do
I have removed entires of ISP DNS from "/etc/resolv.conf" and Make it

domain xyz.com
nameserver 192.168.0.1
================================================
My LAN clients can access SME very well they all are having
Gateway : 192.168.0.1
NameServer: 192.168.0.1
====================================

Offline compdoc

  • *
  • 226
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #6 on: May 06, 2007, 03:14:47 PM »
best do one thing at a time.

If you enter your static ip address into a browser like this: http://ww.xxx.yy.zzz,  does your website open?

This needs to be done by someone outside of your lan. Do it from home, or have a friend do it...

Offline compdoc

  • *
  • 226
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #7 on: May 06, 2007, 03:22:56 PM »
And from looking at that page you posted, I dont think they are providing DNS services because I dont see where you enter your static IP address or set www, ftp, and mx records. They are asking you to enter the domain name servers of your DNS provider, it seems.

Its easy enough to test. Just ping www.xyz.com and see if your static ip address comes up. If you see the ip, then they are providing dns service, if you get a host not found, they arent.

indiLinux

Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #8 on: May 07, 2007, 10:16:44 AM »
Yes By Putting up an IP address in Browser from internet world not from inside lan ,
i can view my site .
.
Now I have a chat with My ISP to Set a DNS Record Publication for this domain Name and
point my static ip to this domain name from there DNS Servers .
So now waiting fro there reply.
Now I am Planning once my ISP has allowed this settings then
i will Log In to MY Domain Manager and will remove the
Namserver Entries Like : NS2.dot5hosting.com and NS1
and will replace with My ISP's DNS entries which we used put in /etc/resolv.conf if its RHEL etc. Now SME does its automatically.
I think this will solve the problem .

Lets Hope , if got succeed then will let u know.Mean while if got any idea kindly do help me .

As u said I have search in Google aout Free DNS from "park dns " services.
Now reading it too.

I had chat again with my Domain Manger Registrar He repeats the same , Purchase
Hosting Plan ,Such a Bull like M$ , only money no help.
ok
Thanks

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #9 on: May 07, 2007, 01:16:14 PM »
Just make a free account at www.zoneedit.com and then enter their ns info into the page you posted earlyer.

You'll have to wait a few hours for servers to refresh their data and then you'll be able to use the ze pannel.

Then add your desired domain and enter the data you wish (eg. ip adress resolves to something.domain.com).
"It should just work" if it doesn't report it. Thanks!

Offline Gaston94

  • *****
  • 184
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #10 on: May 07, 2007, 02:18:30 PM »
Hi,
well i would say change your registar provider  :twisted:
He should be able to provide the correct information in less than a minute !!
Or may I am misunderstanding what and how (and with who) you are making things.
You domain management contact is not your ISP (unless you bought the domain name from him).

Let me assume that you should fill the following part of the screen
Quote
- Create Name Server -

NOTE: If you do not have dns software running on this host/ip, you probably do not want to use this feature.

Once you have created your name servers, if you wish to use them on your domain, you must manually add them through the main "Name Servers" section.


Server Hostname .xyz.com
Server IP Address --empty--


================================Screen Ends=========

I would have say replace the "--empty--" with your @IP.

G.
PS: should you go for the zonedit solution, you would have to iniate a transfert of your domain name mangement from your current registar to zoneedit (not so difficult but can cost ...). As you have a static IP you'd better stay where you are ... should someone at your registar can point you to the correct way ...

Offline compdoc

  • *
  • 226
  • +0/-0
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #11 on: May 07, 2007, 03:38:46 PM »
Quote
I... will remove the Namserver Entries Like : NS2.dot5hosting.com and NS1 and will replace with My ISP's DNS entries which we used put in /etc/resolv.conf if its RHEL etc.

Unless I am misunderstanding you, I dont think you should do this. The nameservers that point the world to your static ip, and the entries in /etc/resolv.conf have nothing to do with each other...

I like Network Solutions because they provide the name and DNS service that you can manage from their site. Although it does cost a little more, they are a large organization, and Ive never seen their servers go down...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #12 on: May 07, 2007, 03:44:02 PM »
Well i bought a domain and it didn't cost a thing.
Some registrars don't offer dns hosting and i had to go with ZE because of that. I know that it's not a good registrar but it's the cheapest and ZE has never let me down in the past. :D
"It should just work" if it doesn't report it. Thanks!

Offline girkers

  • *
  • 296
  • +0/-0
    • gk computer services
Dns+Static Ip+Different Hosting Ns1/ns2 And SME7 Mail Server
« Reply #13 on: May 08, 2007, 08:56:01 AM »
I personally use $10 Domains (per year about $28 Oz for 2 yrs) and then I use dyndns.org and purchased DNS servcies throw them (abiout $38 Oz/yr).

I manage my domain name and name server addresses through $10 domains. My name servers are pointed to the servers nominated by dyndns.org.

I manage my DNS records through dyndns.org and point it my IP address for web/mail/whatever.