Ubuntu: How to FAKE a FQDN.

Leave a comment

April 12, 2012 by aubreykloppers

Ok, this is quete easy.  The problem comes where you need to create a FQDN (fully qualified domain name) without having a DNS server.

To do this you need to edit your /etc/hosts file to look like this:

LINE1: 127.0.0.1  localhost.local  localhost

LINE2: 10.0.0.10 http://www.example.com www

When you do a “hostname -f” you will then get returned “www.example.com”.

This is very important for some software working and apache2 to resolve a FQDN on the host.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: