LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 05-15-2003, 05:42 AM   #1
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
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
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
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: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
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; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 64
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
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
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: Smithville, TN
Distribution: Slackware
Posts: 1,744

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

Original Poster
Rep: Reputation: 64
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 46 10-15-2013 03:45 AM
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


All times are GMT -5. The time now is 08:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration