LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-15-2003, 05:42 AM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Fully Qualified Domain Names?


Ok, so I am trying to setup postfix to work with 2 or more boxes. I am a little confused on what to put where though...

I use one of those cool free Domain Name services that work with Dynamic IP's. It's the no-ip.com one. My Domain name (and website if you are interested) is masterc.no-ip.org

Ok, so with that said...

What do I set on each box for "hostname"? I have named one box "masterc" and the other "cooler" so far (in /etc/hosts). So in my main.cf file do I set:
$myhostname=
as
$myhostname=cooler
? If so, then what? How would I setup "masterc" to get mail from "cooler"?

Ok, so assuming I do set that as "cooler" (Cooler will be running the postfix server), then in $mydomain=
do I put:
$mydomain=masterc.no-ip.org
?

Also, does "masterc.no-ip.org" count as a FQDN even though I don't actually own "no-ip.org"? I am thinking not since the "masterc." is the indication of a virtual name, but it's resolvable to an actual IP so I am lost (obviously ).

Any info would be greatly appreciated.

My network looks as follows:
Code:
==========Phone Jack========
                        DSL Modem   
                             |
                             |
                      +++++Router++++++
                      |               |
                      |               |
                    Cooler          MasterC
Cool
 
Old 05-15-2003, 10:44 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I might be wrong on this since I have dial-up as the only opton to connect to the internet.

Your ISP assigns only one IP adddress to you. That is the address of the router. This is the address that no-ip.org forwards all web/email requests to. So your router needs to pass those requests to the right box on your local network.

Your hostnames can be what you want as long as it is behind the router. But if you wanted you could make the two PC names cooler.masterc.no-ip.org and masterC.masterc.no-ip.org. Since you only have authority on the masterC part of the masterC.no-ip.og. You are accually a sub-domain of no-ip.org.

I think that you need to put the server on the other side of the router. Then the severs DSL connection would have the hostname, masterc.no-ip.org. Then run a proxy such as squid to connect the rest on the network to the internet.

I use to work with a guy that has that set up running FreBSD. If you go to www.dweimer.org. Then go to the SWBell DSL Setup link towards the top of the page. He did a little how to.

Hope I did not confuse you. Also let me know how you got it to work.
 
Old 05-15-2003, 10:56 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Wow, first off, thank you for the reply!

That sure sounds A LOT more complicated than I had hoped But you definitely clarified some things for me. The 1 thing that I see that I seem to not have mentioned is that my IP is dynamic. It changes, and that's why I use one of the Dynamic Free DNS sites (no-ip.com has a LInux client that sends my new IP back to their servers when it changes, and then they update their DNS records accordingly).

I'll get to work on all that, and will let you know how things go. Thanks again for the response.

Cool
 
Old 05-17-2003, 10:00 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I was thinging the other night while trying to go to sleep (thanks).
I would think that your router would pass the web request on to your server. So your servers name should be cooler.masterC.no-ip.com. Then everything should work great. Since when a web request would be sent to no-ip.com, them they would send it to masterC and the router would send it to cooler.
You would need DNS set up and your DNS server should forward request to your your ISP's DNS servers. You will need to set an MX record for you mail server.
I think this might work, that way you could keep your router.
 
Old 05-18-2003, 12:04 AM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I cannot speak for postfix, but I run exim with a no-ip address and it works fine. I don't know how similar the conf files are, but I have this line in mine:
primary_hostname = badcomputer.no-ip.com
Can't help with your network, but I can say that no-ip addresses work perfect as FQDN's
 
Old 05-18-2003, 12:02 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Thank you for the follow up tangle, and for your addition bulliver. I think I've got it all setup and working now. Everything does seem to be working all right. If I have any more issues I'll be sure to post back

Cool
 
Old 05-19-2003, 11:39 AM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Can you tell me what you did to get it working? Thanks
 
Old 05-19-2003, 01:38 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Sorry about that, I actually meant to, I guess I just got side tracked

(also, I'm going to be posting a follow up to this about a seperate/related problem, so I really need this info in this thread, thanks for reminding me )

In the main.cf for postfix it documents that $myhostname is your FQDN, which if you use a no-ip type service is:
yoursite.no-ip.org SO:
my FQDN is:
masterc.no-ip.org which goes in my main.cf as:
$myhostname=masterc.no-ip.org

Futher down it documents a $mydomain which it says is your FQDN without the $myhostname Since I don't own the no-ip.org though, I simply left this commented out. Now to email back and forth from box to box I do have to use this format:
user@cooler OR
user@masterc (depending on which machine is recieving the message) and from that I guess it sorts it out (probably from my entries in /etc/hosts).

I'm not home right now, so if I've left anything out, please ask. I'll be glad to clarify.

Thanks again.

Cool
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache giving the error :Could not determine the server's fully qualified domain name bcf2 Linux - Server 47 02-13-2015 10:34 PM
hostname and fully qualified domain name setup help strimp099 Linux - Networking 7 01-14-2005 10:07 PM
Fully Qualified Domain Name tumana Linux - Networking 4 06-10-2004 02:58 AM
Apache: httpd: Could not determine the server's fully qualified domain name.. shirtboy Linux - Software 1 11-20-2003 03:47 AM
http: can't could not determine the servers fully qualified domain name, using 127xyz s7nner Linux - Newbie 4 05-05-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration