Linode Forum
https://forum.linode.com/

How do I determine my FQDN?
https://forum.linode.com/viewtopic.php?f=11&t=11773
Page 1 of 1

Author:  rlfprog [ Sun Apr 26, 2015 6:39 pm ]
Post subject:  How do I determine my FQDN?

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!

Author:  vonskippy [ Sun Apr 26, 2015 8:05 pm ]
Post subject:  Re: How do I determine my FQDN?

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/

Author:  rlfprog [ Mon Apr 27, 2015 10:56 am ]
Post subject:  Re: How do I determine my FQDN?

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.

Author:  gparent [ Mon Apr 27, 2015 11:09 am ]
Post subject:  Re: How do I determine my FQDN?

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)

Author:  obs [ Mon Apr 27, 2015 11:39 am ]
Post subject:  Re: How do I determine my FQDN?

Code:
hostname -f

Author:  rlfprog [ Mon Apr 27, 2015 12:17 pm ]
Post subject:  Re: How do I determine my FQDN?

Thanks everyone for your answers!

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/