View Full Version : [ubuntu] web and mail server behind adsl broadband modem fixed IP address

April 17th, 2010, 10:09 AM
I would like to host some domains from a ubuntu server running behind an adsl modem with a fixed IP address. I am running software which needs LTS so I am using Ubuntu 8.04 LTS.

my domains (for example) are:
www.abc.com (http://www.abc.com)
www.def.com (http://www.def.com)
www.ghi.com (http://www.ghi.com)

my outward facing (external) IP address is (not real)

I install ubuntu with the netcfg/disable_dhcp=true so that I can set a fixed IP address for the server. A fixed IP address is reqired so that I can forward ports from the adsl modem to the server.

There are some setup questions when installing...

IP address:
Notes: - this server because I want to run a nameserver - my outward facing (exernal) IP address - the name server for my broadband provider

hostname: myserver1
domain name: localnet.net

Question: does domain name have to a be registered domain or can I just make up a fake one? For example, can I use localnet.net or should I use abc.com?
Which is easier?

The results of some commands:

hostname -s

hostname -f

the contents of /etc/hostname

the contents of /etc/hosts localhost myserver1.localnet.net myserver1

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

the contents of /etc/resolv.conf
search localnet.net

the contents of /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
# dns-* options are implemented by the resolvconf package, if installed
dns-search localnet.net

Before I install bind I was just wondering if this looks like it is going to work.

If there are any changes to make, I can make them now before I go any further.

If you need to see any other configuration files or want the results of any commands, please let me know.

Thanks very much for your time.