View previous topic :: View next topic |
Author |
Message |
baboo Senior Member
Joined: 04 Sep 2007 Posts: 676
|
Posted: Wed Dec 17, 2008 8:59 am Post subject: dns setup |
|
|
I am a little confused when setting up dns. If my dns server has ip of 217.171.4.65, and it resides on host random.cliqn.com, do they share the same ip? Or do I give the host another ip?
thanks |
|
Back to top |
|
baboo Senior Member
Joined: 04 Sep 2007 Posts: 676
|
Posted: Wed Dec 17, 2008 3:41 pm Post subject: |
|
|
Upon reflection, I think the real problem is that I have never used sms as an all-in-one server. In the past I have installed multiple sms servers each with different components. I want to use sms and all the servers on one box.
So, if I use sms as one single box, how do I configure the addresses? Meaning, do I need a different ip for dns, email, web server, and firewall?
If so, do I use virtual ips for those components?
thanks |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Wed Dec 17, 2008 10:33 pm Post subject: |
|
|
It depends what you want to configure.
Setting a Domain name Server over the internet it's not something depending from you.
If your ISP or you, register your ip (217.171.4.65) to listen on random.cliqn.com
then that's your server, either the IP or domain.
You can create an MX entry in your BIND configuration for mailserver.
Your mail server will listen either in your IP or domain you just have to rewrite the headers to look different in envelope but in your header files will show up your IP or your register domain.
For example one of the MX entries of gmail.com is mail-ew0-f31.google.com (209.85.219.31).
If you examine the full headers from any email message you will see what I mean.
Virtual IPs are most likely for hosting servers.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
baboo Senior Member
Joined: 04 Sep 2007 Posts: 676
|
Posted: Wed Dec 17, 2008 11:26 pm Post subject: |
|
|
thanks for the reply.
I want to configure everything on sms on one box. So, if I understand you correctly, by
configuring dns and domain name I would be using the same ip?
Sorry, just trying to get this clear in my mind. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Dec 18, 2008 6:32 am Post subject: |
|
|
Yeap since your are using one machine for all you will have
example
MailServer 217.171.4.65:25,143
FTP 217.171.4.65:21
HTTP 217.171.4.65:80
SSH 217.171.4.65:22
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
baboo Senior Member
Joined: 04 Sep 2007 Posts: 676
|
Posted: Thu Dec 18, 2008 4:39 pm Post subject: |
|
|
thank you. I appreciate the help. |
|
Back to top |
|
baboo Senior Member
Joined: 04 Sep 2007 Posts: 676
|
Posted: Fri Dec 19, 2008 8:38 am Post subject: |
|
|
In other distros, I w0ould edit ifcfg-eth0 and put device=eth0:1 and then an ip.
But I have not been successful in finding out how that is done in slackware. Could you please tell me where I would make the changes?
thanks |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Dec 19, 2008 6:07 pm Post subject: |
|
|
/etc/rc.d/rc.inet1.conf
Code: | # Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="" |
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
baboo Senior Member
Joined: 04 Sep 2007 Posts: 676
|
Posted: Fri Dec 19, 2008 7:47 pm Post subject: |
|
|
thanks - but I know about rc.inet1.conf file. I tried creating an entry eth0:1 and new ip but that did not work.
I tried giving two different ips for eth0 and that did not work.
So, I am not sure what you are saying when you show the inet1.confile entry.
sorry |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Dec 19, 2008 8:43 pm Post subject: |
|
|
That's the file, you need to edit., then run /etc/rc.d/rc.inet1
That's the file netconfig use to alter ethernet IP.
Some time require to disable and enable eth0.
ifconfig eth0 down && ifconfig eth0 up
You may also need to check your udev rules if you have two ethernet adapters,
to see if the adapter you want to configure has the correct (eth) number with the one in /etc/rc.d/rc.inet1.conf.
Remove USE_DHCP[0]= line from configuration.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|