Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Apr 26, 2015 6:39 pm 
Offline
Junior Member

Joined: Thu Feb 06, 2014 6:26 pm
Posts: 25
Stupid question but I'm having a hard time finding a simple, straightforward answer to this question.

If my /etc/hosts file contained my server's IP address, DNS name ("example.com"), and hostname ("diamond"), e.g.

127.0.0.1 localhost
127.0.1.1 debian
192.168.1.1 example.com diamond

would my FQDN be "diamond.example.com"?

Thanks!


Top
   
PostPosted: Sun Apr 26, 2015 8:05 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
If you want your FQDN to be diamond.example.com, then your hosts file entry would be:
192.168.1.1 diamond.example.com diamond

Which means both diamond.example.com AND it's alias diamond resolves to 192.168.1.1

http://www.faqs.org/docs/securing/chap9sec95.html
http://www.bleepingcomputer.com/tutoria ... hostnames/

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Mon Apr 27, 2015 10:56 am 
Offline
Junior Member

Joined: Thu Feb 06, 2014 6:26 pm
Posts: 25
Thank you but that doesn't quite answer my question. I don't want my FQDN to be "diamond.example.com". I just want to know how to determine what it actually is at the present time and I thought providing my hosts file would provide the necessary information. Is my FQDN for the given hosts file just "example.com"?

Thanks again.


Top
   
PostPosted: Mon Apr 27, 2015 11:09 am 
Offline
Junior Member

Joined: Wed Mar 28, 2012 4:29 pm
Posts: 38
The FQDN is whatever you define it as. Whatever is presently in your hosts file would be that FQDN. (Most likely something else than example.com)


Top
   
PostPosted: Mon Apr 27, 2015 11:39 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Code:
hostname -f

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Mon Apr 27, 2015 12:17 pm 
Offline
Junior Member

Joined: Thu Feb 06, 2014 6:26 pm
Posts: 25
Thanks everyone for your answers!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group