DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello! I just set up a Debian server on a static IP address. I have a web server and mail server installed on this machine and would like to take a domain I have on GoDaddy and use it for this server. How would I go about doing this with a static IP?
I would start by setting the hostname on your server correctly to match what you have registered. (important for proper email server functionality) http://www.cpqlinux.com/hostname.html
the rest is just setting up the A and MX records properly in your Godaddy web portal to point to the static IP of your server.
I would start by setting the hostname on your server correctly to match what you have registered. (important for proper email server functionality) http://www.cpqlinux.com/hostname.html
the rest is just setting up the A and MX records properly in your Godaddy web portal to point to the static IP of your server.
I've set up the A record correctly, but what would I set my MX records to? I try to set it to my static IP but apparently that doesn't work and you aren't supposed to do that.. Would I set my MX records to point to my domain name?
the MX record should point to the name of the server not the IP address..
Code:
user@it-etch:~$ dig mx google.com
; <<>> DiG 9.3.4 <<>> mx google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17067
;; flags: qr aa; QUERY: 1, ANSWER: 4, AUTHORITY: 4, ADDITIONAL: 8
;; QUESTION SECTION:
;google.com. IN MX
;; ANSWER SECTION:
google.com. 10800 IN MX 10 smtp4.google.com.
google.com. 10800 IN MX 10 smtp1.google.com.
google.com. 10800 IN MX 10 smtp2.google.com.
google.com. 10800 IN MX 10 smtp3.google.com.
;; ADDITIONAL SECTION:
smtp4.google.com. 3600 IN A 72.14.215.25
smtp1.google.com. 3600 IN A 72.14.203.25
smtp2.google.com. 3600 IN A 64.233.167.25
smtp3.google.com. 3600 IN A 64.233.183.25
Google has an A record for each mail server.
Google has an MX record pointing to each server name.
Google has all their mail servers set to the same weight or priority (10)
the MX record should point to the name of the server not the IP address..
Code:
user@it-etch:~$ dig mx google.com
; <<>> DiG 9.3.4 <<>> mx google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17067
;; flags: qr aa; QUERY: 1, ANSWER: 4, AUTHORITY: 4, ADDITIONAL: 8
;; QUESTION SECTION:
;google.com. IN MX
;; ANSWER SECTION:
google.com. 10800 IN MX 10 smtp4.google.com.
google.com. 10800 IN MX 10 smtp1.google.com.
google.com. 10800 IN MX 10 smtp2.google.com.
google.com. 10800 IN MX 10 smtp3.google.com.
;; ADDITIONAL SECTION:
smtp4.google.com. 3600 IN A 72.14.215.25
smtp1.google.com. 3600 IN A 72.14.203.25
smtp2.google.com. 3600 IN A 64.233.167.25
smtp3.google.com. 3600 IN A 64.233.183.25
Google has an A record for each mail server.
Google has an MX record pointing to each server name.
Google has all their mail servers set to the same weight or priority (10)
Does that help ?
So basically, seems how I only have one static IP address and I'm hosting my website and mail server on the same box.. I go into GoDaddy's Total DNS tool, set the A to my static IP and the MX record to my domain name..
I have that setup right now, just waiting for the mx records to resolve.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.