ServePath Dedicated Server Hosting
What's This? GoGrid - Cloud & Hybrid Infrastructures

Worldwide: +1 415.869.7000

  • Customer Login
  • Email Us
  • Request A Call
  • Live Chat
  • Dedicated Hosting
  • Hybrid Hosting
  • Managed Services
  • Why ServePath
  • Company
  • Support

Support

  • Support
  • Knowledge Base
  • FAQs
  • Resource Center
  • Dedicated Server Flash Tutorials
  • Professional Services
  • Dedicated Service Teams
  • New Customer Starter Kit

Questions? Call Us!

Live Chat

Server Specials

From: $179.99 /month

Start Saving Now

Microsoft WebsiteSpark Hosting for your professional web design and development business. Microsoft BizSpark Hosting for your Startup

Getting Started with Your Debian Server

  • Linux Servers
  • Managed Services
  • Professional Services
  • Cloud Hosting

How to Change a Hostname
Configuring a Host-Based Firewall
Configure IP Addresses for Your New Debian Server
Configuring your DNS
How to Handle Package Management
How to Handle Service Management
How and Why to Fool DNS!
What is Wildcard DNS?
Don’t Firewall Yourself Out


Changing Hostnames

To change the FQDN (fully qualified domain name) of a Debian linux server, perform the following:

# echo “SERVER_FQDN” > /etc/hostname

The server’s hostname will be updated after a restart.

Configuring IP Addresses

Debian ip configuration

Configuring host-based firewall

IPTABLES tutorial

DNS Configuration

Any machine ServePath deploys will be configured to use the ServePath nameservers. This configuration is stored in the file /etc/resolv.conf. This example resolv.conf is using 1.2.3.4 and 5.6.7.8 as the nameservers.

/etc/resolv.conf:

Nameserver 1.2.3.4
Nameserver 5.6.7.8

Package Management

Debian package management

Service management

To get a list of services that are configured to startup at run-level 2 (Debian’s default run-level), execute the following as root:

# ls –l /etc/rc2.d/S*

To add a service to the startup list, execute:

# update-rc.d service_name start 99 2 3 4 5 . stop 0 1 6 .

The above will start service_name as the last step of the startup service in run-levels 2, 3, 4, and 5, and stop the service in run-levels 0, 1, and 6.

To stop a service from starting on bootup, execute:

# rm –rf /etc/rc2.d/S*service_name

*** you can also execute ‘update-rc.d –f service_name remove’ ***

To manually start or stop a service, execute the following as root:

# /etc/init.d/service_name [start|stop]

For more information regarding Debian’s service management options, execute ‘man update-rc.d’ from a shell.

Fool DNS!

If you are testing the setup on a server that is not yet live, and you haven't pointed your DNS to your new server yet, here is a trick. You can fool your client machine into resolving the new IP by editing your local hosts file.

Here's how it works:

Your operating system will attempt to resolve domain names to IP addresses by first accessing a local file called the "hosts" file, which is simply a database of IP-to-hostname mappings. DNS is queried only if the domain name that you are looking for is not listed in this file. So, to trick your OS into resolving a "fake" IP address for your domain (pointing to your new server), just add one line to your local hosts file!

For Example:

12.13.14.15 hostname.YOUR-DOMAIN-HERE.com

Host File Locations:

Windows Clients – C:\winnt\system32\drivers\etc\hosts

Linux/Unix clients - /etc/hosts

* Note that the filename has no extension, it is simply ‘hosts.’

Get the most out of DNS with Wildcard DNS!

Do you want your users to get to your web site even if they mistype the URL? Use wildcard DNS to allow Internet users to resolve your IP address no matter what hostname they type.

How to do it:

Just use a "*" in the place of the host name in your DNS configuration (works for BIND or Windows DNS)

*.YOUR-DOMAIN-HERE.com IN A 123.123.123.123

Don't Firewall Yourself Out!

ServePath deploys your server with a software firewall to prevent unauthorized access to your server. But when making changes to your host-based software firewall, make sure that you do not block the remote administration ports and lock yourself out of your own server! Be sure to keep AT LEAST the following port open:

Port 22/TCP for SSH

 


  • Dedicated Hosting
    • Load Balanced Server Networks
    • Dedicated Server Specials
    • Compare Dedicated Server Packages
  • Hybrid Hosting
    • Hybrid Hosting Case Studies
    • Sample Hybrid Network Configurations
  • Managed Services
    • Security Services
    • Backup & Storage
    • Networking Services
    • Monitoring Services
    • Content Delivery Network
    • Load Balancing
  • Why ServePath
    • Service Level Agreement
    • San Francisco Datacenter
    • Screaming Fast Network™
    • Certifications
    • Customer Testimonails
    • Customer Case Studies
  • Company
    • Contact ServePath
    • ServePath Leadership
    • Partners
    • News & Press
    • Events
    • Awards
    • Referral Programs
    • Careers
  • Support
    • Knowledge Base
    • FAQs
    • Resource Center
    • Dedicated Server Flash Tutorials
    • Professional Services
    • Dedicated Service Teams
    • New Customer Starter Kit

Use of ServePath services is subject to our Terms of Service, SLA, AUP, and Privacy Policy. Copyright © 2001 - 2010 ServePath. All rights reserved.