Ask the Expert

Setting up a DNS server or a connection between Linux and Windows computers

Which files do I need to configure to set up a DNS server on Red Hat Linux? I have two computers (Red Hat 9, Windows 2000) connected through cross cable.

Requires Free Membership to View

Setting up DNS, or more specifically, allowing both computers to access each other by hostname, may be simpler than setting up a server especially for your particular situation. You may be fine to just edit the "hosts" file on each machine.

In Windows 2000 you can do the following:
Open c:winntsystem32driversetchosts with your favorite text editor. Add an entry with the IP address of the Red Hat 9 machine and a hostname.

In Linux:
You can edit the /etc/hosts file by going to a console session, and typing as the root user, add your IP address and host names for both machines.

If you do want to install a simple DNS server on Linux you can investigate this how-to.

This was first published in March 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: