Ubuntu: How to FAKE a FQDN.
Leave a commentApril 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