LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2005, 12:24 PM   #1
namboi
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
server FQDN help


Hello,

I'm currently using a cable modem, with a dlink router. I've registered with dyndns.org to get a domain name. My dlink router updates dyndns with my IP when it changes.

I'd like to know how i can set things up on my linux box so that when i type my fqdn on the web it will point to my box. I've been looking around for some documentation that made sense to me but i cant find anything.

im not sure HOW and WHEREi would set the FQDN, the linux box IP, and the IP of my internet/cable modem. To my knowledge, thats all i need to set to get it to work.

I've looked at /etc/hosts

but im confused about which IP im supposed to have in there. Is it my linux box IP? or my internet/cable modems IP? Because if i place my cable modem IP there how does dyndns do it's job to point my FQDN to the IP.


Anyways, I hope what i've written makes sense to someone out there.
Any help would be appreciated. THanks!
 
Old 05-07-2005, 01:13 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Assuming dyndns has their DNS servers set up correctly, then you should be taken to your machine when you request whatever.dyndns.org. This is what you did when you set up your account with them (I've never used dyndns, but what they do is map the name you selected to your changing IP address). You can also add an entry to your /etc/hosts file to map whatever.dyndns.org to 127.0.0.1 (loopback), but this obviously won't affect anything beyond your own system.
 
Old 05-07-2005, 01:45 PM   #3
namboi
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Hi, thanks for your help! Im still a bit confused as to where i fill in the correct info. Could you or someone please have a look at my settings and provide me some direction?


192.168.0.100 = Linux box lan IP
55.66.77.88 = internet/cable modem IP

This is what my /etc/hosts file looks like


# do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.100 whatever.dyndns.org
# 55.66.77.88 whatever.dyndns.org

Do i have it correctly set up so that my FQDN (whatever.dyndns.org) will point to my linux box? Where else to i have to make changes for this to work?

I've also read on a post about the # neat command

This is what i have, all my fields are blank, WHAT and WHERE should i be filling in?

DNS (tab)
Hostname: ?
Primary DNS: ?
Secondary DNS: ?
Tertiary DNS: ?
DNS search path: ?

Hosts (tab)
IP: 192.16.190.100 Name:whatever.dyndns.org Aliasesblank)






THanks for your help!
 
Old 05-07-2005, 01:54 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Oh, you're behind a router ... I'm an idiot for not seeing that . Editing /etc/host will do nothing other than to save your own system from having to do a DNS lookup and having to go outside your own LAN, which can be problematic), and based on what you posted, it looks like you did that correctly. So now your whatever.dyndnds.org should be accessible for both outside and inside your LAN. Have you tested that? Are there any problems?

Also, have you set up port forwarding on your D-Link router yet? It won't matter for you (since you're on your LAN) but it will for people coming in from the Internet.
 
Old 05-07-2005, 02:06 PM   #5
namboi
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the quick reply!

Yes, I've port forwarded on my router. When i ping whatever.dyndns.org from a different computer on my lan, i get a reply and the IP matches my internet/modem (55.66.77.88).

Does that mean i've set it up correctly?

Does it matter that the DNS tab when i run #neat is blank? (see above for my #neat values)
 
Old 05-07-2005, 02:09 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Then it looks like you're set. As I mentioned, though, you may need to add a hosts entry to all of the system on your LAN, because I've heard of people running into trouble trying to connect via port forwarding to a computer on their own local network.

[Edit]: I've never used neat, but those values look like there for your machine's own DNS set up (which DNS server to use, etc.). You probably get these from your router via DHCP, and in any case they won't matter for the resolution of a dyndns.org domain name.

Last edited by btmiller; 05-07-2005 at 02:10 PM.
 
Old 05-07-2005, 02:20 PM   #7
namboi
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
thanks Btmiller!

How would i go about adding a hosts entry to all of the system on my LAN?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dnat+fqdn roopunix Linux - Networking 5 07-28-2005 08:13 AM
iptables+FQDN roopunix Linux - Networking 5 07-12-2005 08:10 AM
ip as my fqdn? sortia Linux - Networking 6 04-27-2005 09:46 AM
Fqdn ziox Linux - Networking 0 10-06-2004 05:46 PM
FQDN - not darb Linux - General 1 10-04-2004 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration