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!

6 Replies

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/">http://www.bleepingcomputer.com/tutorials/domain-names-and-hostnames/

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.

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)

Thanks everyone for your answers!

Use only your system mark in ddclient 192.168.1.1. So in the event that you have the system named as "Home" in your Dashboard, at that point the "hostname" in ddclient would be only that, "Home". I've tried ddclient with both my secret key cited and unquoted and had no issues. I would prescribe running "ddclient - troubleshoot - verbose - noquiet - power" and check the yield. It should let you know all that you have to know to make sense of what's happening. We don't do any definitive or dynamic DNS facilitating so there is no FQDN for you to point to or at.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct